dotfiles/dot_config/nvim/coc.vim

21 lines
380 B
VimL
Raw Normal View History

2020-05-07 04:20:54 +00:00
set hidden
set nobackup
set nowritebackup
set cmdheight=2
set shortmess+=c
set signcolumn=yes
inoremap <silent><expr> <c-space> coc#refresh()
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
" Binds
nnoremap <silent> K :call <SID>show_documentation()<CR>