From cef617928ae45cf90e7c2aa4928b19561f216b0b Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 31 Aug 2021 14:23:13 +0200 Subject: [PATCH] Update coc settings --- .vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.vimrc b/.vimrc index 4dc338a..ad15808 100644 --- a/.vimrc +++ b/.vimrc @@ -130,10 +130,21 @@ let g:coc_global_extensions = [ \'coc-snippets' \] " Autocomplete +imap (coc-snippets-expand) +nn es :CocCommand snippets.editSnippets ino pumvisible() ? "\" : \ coc#refresh() ino pumvisible() ? "\" : "k" ino complete_info()["selected"] != "-1" ? "\" : "\u\" +" Show doccumentation +fu! s:show_documentation() + if (index(['vim','help'], &filetype) >= 0) + execute 'h '.expand('') + else + call CocAction('doHover') + endif +endfunction +nnoremap K :call show_documentation() " Code action on cursor position nm do (coc-codeaction) " Coc statusline