minor change to packer and null ls
This commit is contained in:
parent
dfd988911d
commit
726abed27d
3 changed files with 12 additions and 17 deletions
|
@ -1,12 +1,12 @@
|
|||
local null_ls = require("null-ls")
|
||||
|
||||
null_ls.setup({
|
||||
sources = {
|
||||
null_ls.builtins.formatting.rustfmt,
|
||||
sources = {
|
||||
null_ls.builtins.formatting.rustfmt,
|
||||
null_ls.builtins.formatting.black,
|
||||
null_ls.builtins.formatting.shfmt,
|
||||
null_ls.builtins.formatting.prettierd.with({
|
||||
filetypes = { "html", "json", "yaml", "markdown" },
|
||||
}),
|
||||
}
|
||||
null_ls.builtins.formatting.prettierd.with({
|
||||
filetypes = { "html", "json", "yaml", "markdown" },
|
||||
}),
|
||||
}
|
||||
})
|
||||
|
|
|
@ -39,7 +39,7 @@ return require('packer').startup(function(use)
|
|||
use("williamboman/mason-lspconfig.nvim")
|
||||
use("hrsh7th/cmp-nvim-lsp")
|
||||
use("neovim/nvim-lspconfig")
|
||||
use("jose-elias-alvarez/null-ls.nvim")
|
||||
use("nvimtools/none-ls.nvim")
|
||||
use({
|
||||
"L3MON4D3/LuaSnip",
|
||||
requires = {
|
||||
|
|
|
@ -49,8 +49,8 @@ local function save_profiles(threshold)
|
|||
end
|
||||
|
||||
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 install_cpath_pattern = "/home/tsousa/.cache/nvim/packer_hererocks/2.1.1694285958/lib/lua/5.1/?.so"
|
||||
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.1696795921/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
@ -135,10 +135,10 @@ _G.packer_plugins = {
|
|||
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/mason.nvim",
|
||||
url = "https://github.com/williamboman/mason.nvim"
|
||||
},
|
||||
["null-ls.nvim"] = {
|
||||
["none-ls.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
|
||||
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
|
||||
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/none-ls.nvim",
|
||||
url = "https://github.com/nvimtools/none-ls.nvim"
|
||||
},
|
||||
nvim = {
|
||||
loaded = true,
|
||||
|
@ -155,11 +155,6 @@ _G.packer_plugins = {
|
|||
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/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"] = {
|
||||
loaded = true,
|
||||
path = "/home/tsousa/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||
|
|
Loading…
Reference in a new issue