mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:17:35 +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 = {
|
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"},
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user