From 726abed27dc5b74ad91eb111ac046041018b36c1 Mon Sep 17 00:00:00 2001 From: tiago Date: Sun, 22 Oct 2023 18:57:24 +0100 Subject: [PATCH] minor change to packer and null ls --- .config/nvim/after/plugin/null-ls.lua | 12 ++++++------ .config/nvim/lua/tsousa/packer.lua | 2 +- .config/nvim/plugin/packer_compiled.lua | 15 +++++---------- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.config/nvim/after/plugin/null-ls.lua b/.config/nvim/after/plugin/null-ls.lua index 54db889..bf22bc0 100644 --- a/.config/nvim/after/plugin/null-ls.lua +++ b/.config/nvim/after/plugin/null-ls.lua @@ -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" }, + }), + } }) diff --git a/.config/nvim/lua/tsousa/packer.lua b/.config/nvim/lua/tsousa/packer.lua index a7a1951..9bb8381 100644 --- a/.config/nvim/lua/tsousa/packer.lua +++ b/.config/nvim/lua/tsousa/packer.lua @@ -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 = { diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua index e413963..afa82f0 100644 --- a/.config/nvim/plugin/packer_compiled.lua +++ b/.config/nvim/plugin/packer_compiled.lua @@ -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",