mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 19:26:27 +00:00
Remove python from ale and add to null-ls
This commit is contained in:
parent
d811700154
commit
45e32b07bf
@ -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"},
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user