From 974ad2e128c188697d757ffd1fb0caeac7cf91a1 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 4 Oct 2024 09:16:58 -0700 Subject: [PATCH] Add isort and make note about null-ls --- neovim/lua/lazy_plugins.lua | 4 +++- neovim/lua/plugins/null-ls/init.lua | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/neovim/lua/lazy_plugins.lua b/neovim/lua/lazy_plugins.lua index 94b359d..9988947 100644 --- a/neovim/lua/lazy_plugins.lua +++ b/neovim/lua/lazy_plugins.lua @@ -325,8 +325,10 @@ return { -- Generic linter/formatters in diagnostics API { + -- TODO: null-ls is archived and no longer maintained. It is replaced by none-ls + -- Replace with https://github.com/nvimtools/none-ls.nvim "https://github.com/jose-elias-alvarez/null-ls.nvim", - -- This is lazy and configured after lspis loaded in plugins/lsp.lua + -- This is lazy and configured after lsps loaded in plugins/lsp.lua lazy = true, branch = utils.map_version_rule({ [">=0.8.0"] = utils.nil_val, diff --git a/neovim/lua/plugins/null-ls/init.lua b/neovim/lua/plugins/null-ls/init.lua index 5868d43..18156b9 100644 --- a/neovim/lua/plugins/null-ls/init.lua +++ b/neovim/lua/plugins/null-ls/init.lua @@ -49,6 +49,7 @@ function M.configure(options) null_ls.builtins.formatting.fish_indent, -- Python null_ls.builtins.formatting.reorder_python_imports, + null_ls.builtins.formatting.isort, null_ls.builtins.formatting.black, null_ls.builtins.diagnostics.mypy, -- Go