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 = { vim.g.ale_linters = {
go = {}, go = {},
rust = {}, rust = {},
python = {},
-- sh = {'language_server', 'shell', 'shellcheck'}, -- sh = {'language_server', 'shell', 'shellcheck'},
sh = {}, sh = {},
text = {"proselint", "alex"}, text = {"proselint", "alex"},

View File

@ -37,7 +37,7 @@ local function default_attach(client, bufnr)
vim.cmd([[ vim.cmd([[
augroup lsp_format augroup lsp_format
autocmd! 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) " autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 1000)
augroup END augroup END
]]) ]])
@ -137,8 +137,9 @@ function M.config_null_ls()
-- Fish -- Fish
-- null_ls.builtins.formatting.fish_indent, -- null_ls.builtins.formatting.fish_indent,
-- Python -- Python
-- null_ls.builtins.formatting.reorder_python_imports, null_ls.builtins.formatting.reorder_python_imports,
-- null_ls.builtins.formatting.black, null_ls.builtins.formatting.black,
null_ls.builtins.diagnostics.mypy,
-- Go -- Go
null_ls.builtins.diagnostics.golangci_lint, null_ls.builtins.diagnostics.golangci_lint,
-- Text -- Text