diff --git a/vim/.vimrc b/vim/.vimrc index e1e0d72e..a4b9a777 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -28,7 +28,6 @@ call plug#begin('~/.vim/plugged') Plug 'reedes/vim-pencil' " Word wrap Plug 'junegunn/goyo.vim' " Distraction-free writing Plug 'jparise/vim-graphql' " GraphQL support - Plug 'neoclide/coc.nvim', {'branch': 'release'} " Auto-complete support Plug 'ryanoasis/vim-devicons' Plug 'osyo-manga/vim-over' @@ -298,59 +297,3 @@ let NERDTreeStatusline='%{exists("b:NERDTree")?fnamemodify(b:NERDTree.root.path. autocmd! FileType fzf autocmd FileType fzf set laststatus=0 noshowmode noruler \| autocmd BufLeave set laststatus=2 ruler - -" ============================ -" ========= coc.nvim ========= -" ============================ - -" Some servers have issues with backup files, see #649. -set nobackup -set nowritebackup - -" Give more space for displaying messages. -set cmdheight=2 - -" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable -" delays and poor user experience. -set updatetime=300 - -" Don't pass messages to |ins-completion-menu|. -set shortmess+=c - -" Always show the signcolumn, otherwise it would shift the text each time -" diagnostics appear/become resolved. -set signcolumn=yes - -" GoTo code navigation. -nmap gd (coc-definition) -nmap gy (coc-type-definition) -nmap gi (coc-implementation) -nmap gr (coc-references) - -" Use K to show documentation in preview window. -nnoremap K :call show_documentation() - -function! s:show_documentation() - if (index(['vim','help'], &filetype) >= 0) - execute 'h '.expand('') - elseif (coc#rpc#ready()) - call CocActionAsync('doHover') - else - execute '!' . &keywordprg . " " . expand('') - endif -endfunction - -" Use tab for trigger completion with characters ahead and navigate. -" NOTE: Use command ':verbose imap ' to make sure tab is not mapped by -" other plugin before putting this into your config. -function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~ '\s' -endfunction - -" Insert when previous text is space, refresh completion if not. -inoremap -\ coc#pum#visible() ? coc#pum#next(1): -\ check_back_space() ? "\" : -\ coc#refresh() -inoremap coc#pum#visible() ? coc#pum#prev(1) : "\"