diff --git a/vimrc b/vimrc index e6c9c8d..4013219 100644 --- a/vimrc +++ b/vimrc @@ -109,13 +109,15 @@ function! CheckBackspace() abort return !col || getline('.')[col - 1] =~# '\s' endfunction +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) nmap d (coc-definition) nmap rn (coc-rename) +nmap D :CocDiagnostics nmap gd (coc-definition) nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) -imap (coc-snippets-expand) " Suggestion navigation inoremap coc#refresh() @@ -139,6 +141,8 @@ let g:SimpylFold_docstring_preview=1 nmap g :NERDTreeFind nmap e :NERDTreeToggle let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.egg-info$', 'node_modules'] +" prevent changing buffer in NERDtree window +autocmd BufWinLeave * if &filetype == 'nerdtree' | call interrupt() | endif "CtrlP config nmap :CtrlPBuffer