Move general settings and plugins out of init.vim

This commit is contained in:
2021-10-14 21:03:29 +03:00
parent 942c2c67ca
commit f116ecac18
6 changed files with 66 additions and 62 deletions

View File

@@ -61,3 +61,14 @@ let g:coc_global_extensions = [
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
command! -nargs=0 Prettier :CocCommand prettier.formatFile
" Use K to show documentation in preview window
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction