From dca89bffb1e1cc0ced90e1f9c08a135ff1460495 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 4 Oct 2024 15:18:28 +0200 Subject: Move from Coc To Ale for code linting --- vimrc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/vimrc b/vimrc index 2130f6a..3b61c9c 100644 --- a/vimrc +++ b/vimrc @@ -7,7 +7,7 @@ call plug#begin() Plug 'jiangmiao/auto-pairs' Plug 'ctrlpvim/ctrlp.vim' Plug 'yegappan/grep' - Plug 'neoclide/coc.nvim', {'branch': 'release', 'do': 'npm install'} + Plug 'dense-analysis/ale' call plug#end() colorscheme sorbet @@ -27,16 +27,16 @@ nnoremap :copen nnoremap :CtrlP nnoremap :CtrlPBuffer nnoremap :Rg +nnoremap :ALEHover +nnoremap :ALEDetail -nmap [g (coc-diagnostic-prev) -nmap ]g (coc-diagnostic-next) -nmap gd (coc-definition) -nmap gy (coc-type-definition) -nmap gi (coc-implementation) -nmap gr (coc-references) +nmap gr :ALEFindReferences +nmap gd :ALEALEGoToDefinition +nmap re :ALERename -xmap f (coc-format-selected) -nmap f (coc-format-selected) -nmap cf (coc-fix-current) -nmap re (coc-rename) +let g:ale_hover_to_floating_preview = 1 +let g:ale_detail_to_floating_preview = 1 +let g:ale_floating_window_border = 0 +let g:ale_virtualtext_cursor = 0 +let g:ale_set_quickfix = 1 -- cgit v1.2.3