diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-06 05:43:50 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-06 05:43:50 +0100 |
| commit | 4279a5aa27adf603260e5c2b767e6bc16399107f (patch) | |
| tree | 285af982466c551eaca0550ba1418fb9690d48d1 | |
| parent | dd295c36b90357dcb427cabb288383cb8f6b06d8 (diff) | |
| download | dotfiles-4279a5aa27adf603260e5c2b767e6bc16399107f.tar.gz | |
Adde ALE back to the vimrc
| -rw-r--r-- | .vimrc | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -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' | ||
| 8 | call plug#end() | 9 | call plug#end() |
| 9 | 10 | ||
| 10 | set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4 | 11 | set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4 |
| @@ -21,6 +22,18 @@ nnoremap <C-b> :CtrlPBuffer<cr> | |||
| 21 | nnoremap <Leader>q :nohlsearch<cr> | 22 | nnoremap <Leader>q :nohlsearch<cr> |
| 22 | nnoremap <Leader>c :silent call system('ctags --c++-kinds=+p -R .')<CR> | 23 | nnoremap <Leader>c :silent call system('ctags --c++-kinds=+p -R .')<CR> |
| 23 | nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:copen<CR> | 24 | nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:copen<CR> |
| 25 | nnoremap <C-k> :ALEHover<cr> | ||
| 26 | nnoremap <C-j> :ALEDetail<cr> | ||
| 27 | |||
| 28 | nmap <silent> gr :ALEFindReferences<cr> | ||
| 29 | nmap <silent> gd :ALEGoToDefinition<cr> | ||
| 30 | nmap <silent> re :ALERename<cr> | ||
| 24 | 31 | ||
| 25 | let g:ctrlp_use_caching = 0 | 32 | let g:ctrlp_use_caching = 0 |
| 26 | let g:ctrlp_working_path_mode = '' | 33 | let g:ctrlp_working_path_mode = '' |
| 34 | |||
| 35 | let g:ale_hover_to_floating_preview = 1 | ||
| 36 | let g:ale_detail_to_floating_preview = 1 | ||
| 37 | let g:ale_floating_window_border = 0 | ||
| 38 | let g:ale_virtualtext_cursor = 0 | ||
| 39 | let g:ale_set_quickfix = 1 | ||
