needed kondo, removed ale and replaced with nvim-lint

This commit is contained in:
Anish L 2022-02-26 17:24:02 +10:00
parent 3821a75bd5
commit 8dffde79ac

View file

@ -45,7 +45,9 @@ in
clojure-lsp clojure-lsp
rnix-lsp rnix-lsp
terraform-lsp terraform-lsp
# Other LSPs vale
clj-kondo
# Other LSPs or linters
( neovim.override { ( neovim.override {
vimAlias = true; vimAlias = true;
withPython3 = true; withPython3 = true;
@ -81,7 +83,7 @@ in
vim-zettel vim-zettel
# lsp stuff # lsp stuff
ale nvim-lint
nvim-lspconfig nvim-lspconfig
nvim-cmp nvim-cmp
cmp-nvim-lsp cmp-nvim-lsp
@ -251,9 +253,6 @@ in
" fzf " fzf
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } } let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } }
" ALE
let g:ale_linters = {'clojure': ['clj-kondo'], 'python': ['black', 'pylint']}
" lsp commands " lsp commands
nnoremap <leader>vd :lua vim.lsp.buf.definition()<CR> nnoremap <leader>vd :lua vim.lsp.buf.definition()<CR>
nnoremap <leader>vi :lua vim.lsp.buf.implementation()<CR> nnoremap <leader>vi :lua vim.lsp.buf.implementation()<CR>
@ -386,6 +385,13 @@ require('lualine').setup {
} }
} }
-- nvim-lint
require('lint').linters_by_ft = {
markdown = {'vale'},
clojure = {'clj-kondo'},
python = {'black'}
}
EOF EOF
''; '';
}; };