summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorZofia Szweda <sophies@disroot.org>2026-09-08 14:17:05 +0200
committerZofia Szweda <sophies@disroot.org>2026-09-08 14:17:22 +0200
commit808e03971883fbc8a372bb32f88a82fecf6a901c (patch)
tree1e2806eea88b5f820abaa39401b6da9da7bb6328 /vim/.vimrc
parent4a79586cde592f71c78ee1dca08908afa2861306 (diff)
vim: add ALE for linting
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 45268aa..7ee6530 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -16,6 +16,7 @@ Plug 'tpope/vim-commentary'
Plug 'yegappan/lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'normen/vim-lsp-settings-adapter'
+Plug 'dense-analysis/ale'
Plug 'kalbasit/vim-colemak'
call plug#end()
let mapleader = "\<Space>"
@@ -62,6 +63,10 @@ nnoremap <leader>c "+y
vnoremap <leader>c "+y
autocmd FileType html,css EmmetInstall
"let
+let g:ale_linters = {'vim': ['vint']}
+let g:ale_sign_column_always = 1
+let g:ale_lint_on_text_changed = 'normal'
+let g:ale_lint_on_save = 1
let g:VM_maps = {}
let g:buftabline_show = 2
let g:buftabline_numbers = 1
@@ -111,7 +116,7 @@ function! s:lsp_keymaps() abort
nmap <buffer> [g :LspDiagPrev<CR>
nmap <buffer> ]g :LspDiagNext<CR>
nmap <buffer> K :LspHover<CR>
- if &filetype !=# 'vim'
+ if index(['vim', 'html', 'css'], &filetype) == -1
autocmd BufWritePre <buffer> LspFormat
endif
endfunction