minor change to packer and null ls

This commit is contained in:
Tiago Sousa 2023-10-22 18:57:24 +01:00
parent dfd988911d
commit 726abed27d
3 changed files with 12 additions and 17 deletions

View file

@ -1,12 +1,12 @@
local null_ls = require("null-ls") local null_ls = require("null-ls")
null_ls.setup({ null_ls.setup({
sources = { sources = {
null_ls.builtins.formatting.rustfmt, null_ls.builtins.formatting.rustfmt,
null_ls.builtins.formatting.black, null_ls.builtins.formatting.black,
null_ls.builtins.formatting.shfmt, null_ls.builtins.formatting.shfmt,
null_ls.builtins.formatting.prettierd.with({ null_ls.builtins.formatting.prettierd.with({
filetypes = { "html", "json", "yaml", "markdown" }, filetypes = { "html", "json", "yaml", "markdown" },
}), }),
} }
}) })

View file

@ -39,7 +39,7 @@ return require('packer').startup(function(use)
use("williamboman/mason-lspconfig.nvim") use("williamboman/mason-lspconfig.nvim")
use("hrsh7th/cmp-nvim-lsp") use("hrsh7th/cmp-nvim-lsp")
use("neovim/nvim-lspconfig") use("neovim/nvim-lspconfig")
use("jose-elias-alvarez/null-ls.nvim") use("nvimtools/none-ls.nvim")
use({ use({
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
requires = { requires = {

View file

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end end
time([[Luarocks path setup]], true) time([[Luarocks path setup]], true)
local package_path_str = "/home/tsousa/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?.lua;/home/tsousa/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?/init.lua;/home/tsousa/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?.lua;/home/tsousa/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?/init.lua" local package_path_str = "/home/tsousa/.cache/nvim/packer_hererocks/2.1.1696795921/share/lua/5.1/?.lua;/home/tsousa/.cache/nvim/packer_hererocks/2.1.1696795921/share/lua/5.1/?/init.lua;/home/tsousa/.cache/nvim/packer_hererocks/2.1.1696795921/lib/luarocks/rocks-5.1/?.lua;/home/tsousa/.cache/nvim/packer_hererocks/2.1.1696795921/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/tsousa/.cache/nvim/packer_hererocks/2.1.1694285958/lib/lua/5.1/?.so" local install_cpath_pattern = "/home/tsousa/.cache/nvim/packer_hererocks/2.1.1696795921/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str package.path = package.path .. ';' .. package_path_str
end end
@ -135,10 +135,10 @@ _G.packer_plugins = {
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/mason.nvim", path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/mason.nvim",
url = "https://github.com/williamboman/mason.nvim" url = "https://github.com/williamboman/mason.nvim"
}, },
["null-ls.nvim"] = { ["none-ls.nvim"] = {
loaded = true, loaded = true,
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/null-ls.nvim", path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/none-ls.nvim",
url = "https://github.com/jose-elias-alvarez/null-ls.nvim" url = "https://github.com/nvimtools/none-ls.nvim"
}, },
nvim = { nvim = {
loaded = true, loaded = true,
@ -155,11 +155,6 @@ _G.packer_plugins = {
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua", path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua",
url = "https://github.com/norcalli/nvim-colorizer.lua" url = "https://github.com/norcalli/nvim-colorizer.lua"
}, },
["nvim-jdtls"] = {
loaded = true,
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/nvim-jdtls",
url = "https://github.com/mfussenegger/nvim-jdtls"
},
["nvim-lspconfig"] = { ["nvim-lspconfig"] = {
loaded = true, loaded = true,
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",