diff --git a/neovim/lua/plugins/ale.lua b/neovim/lua/plugins/ale.lua index bc60e4f..c1c1975 100644 --- a/neovim/lua/plugins/ale.lua +++ b/neovim/lua/plugins/ale.lua @@ -5,6 +5,7 @@ vim.g.ale_disable_lsp = 1 vim.g.ale_linters = { go = {}, rust = {}, + python = {}, -- sh = {'language_server', 'shell', 'shellcheck'}, sh = {}, text = {"proselint", "alex"}, diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index cf2787b..70813c1 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -37,7 +37,7 @@ local function default_attach(client, bufnr) vim.cmd([[ augroup lsp_format autocmd! - autocmd BufWritePre *.rs,*.go,*.py lua vim.lsp.buf.formatting_sync(nil, 1000) + autocmd BufWritePre *.rs,*.go,*.sh lua vim.lsp.buf.formatting_sync(nil, 1000) " autocmd BufWritePre lua vim.lsp.buf.formatting_sync(nil, 1000) augroup END ]]) @@ -137,8 +137,9 @@ function M.config_null_ls() -- Fish -- null_ls.builtins.formatting.fish_indent, -- Python - -- null_ls.builtins.formatting.reorder_python_imports, - -- null_ls.builtins.formatting.black, + null_ls.builtins.formatting.reorder_python_imports, + null_ls.builtins.formatting.black, + null_ls.builtins.diagnostics.mypy, -- Go null_ls.builtins.diagnostics.golangci_lint, -- Text