21 lines
380 B
VimL
21 lines
380 B
VimL
|
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>
|