aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-06 05:43:50 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-06 05:43:50 +0100
commit4279a5aa27adf603260e5c2b767e6bc16399107f (patch)
tree285af982466c551eaca0550ba1418fb9690d48d1
parentdd295c36b90357dcb427cabb288383cb8f6b06d8 (diff)
downloaddotfiles-4279a5aa27adf603260e5c2b767e6bc16399107f.tar.gz
Adde ALE back to the vimrc
-rw-r--r--.vimrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 6b8fc8e..a4beb55 100644
--- a/.vimrc
+++ b/.vimrc
@@ -5,6 +5,7 @@ call plug#begin()
5 Plug 'tpope/vim-commentary' 5 Plug 'tpope/vim-commentary'
6 Plug 'mitjafelicijan/sniper.vim' 6 Plug 'mitjafelicijan/sniper.vim'
7 Plug 'ctrlpvim/ctrlp.vim' 7 Plug 'ctrlpvim/ctrlp.vim'
8 Plug 'dense-analysis/ale'
8call plug#end() 9call plug#end()
9 10
10set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4 11set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4
@@ -21,6 +22,18 @@ nnoremap <C-b> :CtrlPBuffer<cr>
21nnoremap <Leader>q :nohlsearch<cr> 22nnoremap <Leader>q :nohlsearch<cr>
22nnoremap <Leader>c :silent call system('ctags --c++-kinds=+p -R .')<CR> 23nnoremap <Leader>c :silent call system('ctags --c++-kinds=+p -R .')<CR>
23nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:copen<CR> 24nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:copen<CR>
25nnoremap <C-k> :ALEHover<cr>
26nnoremap <C-j> :ALEDetail<cr>
27
28nmap <silent> gr :ALEFindReferences<cr>
29nmap <silent> gd :ALEGoToDefinition<cr>
30nmap <silent> re :ALERename<cr>
24 31
25let g:ctrlp_use_caching = 0 32let g:ctrlp_use_caching = 0
26let g:ctrlp_working_path_mode = '' 33let g:ctrlp_working_path_mode = ''
34
35let g:ale_hover_to_floating_preview = 1
36let g:ale_detail_to_floating_preview = 1
37let g:ale_floating_window_border = 0
38let g:ale_virtualtext_cursor = 0
39let g:ale_set_quickfix = 1