Remove python from ale and add to null-ls

This commit is contained in:
ViViDboarder 2021-12-08 17:12:33 -08:00
parent d811700154
commit 45e32b07bf
2 changed files with 5 additions and 3 deletions

View File

@ -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"},

View File

@ -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 <buffer> 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