From 07dc7e7de138ce6244d9bc350135a03c22d44ade Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Tue, 6 Sep 2022 09:40:28 +0200 Subject: [PATCH] (vim) Add COC configuration to accomodate latest update --- .config/nvim/coc.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.config/nvim/coc.vim b/.config/nvim/coc.vim index e595e72..6fdd232 100644 --- a/.config/nvim/coc.vim +++ b/.config/nvim/coc.vim @@ -147,3 +147,17 @@ nnoremap j :CocNext nnoremap k :CocPrev " Resume latest coc list. nnoremap p :CocListResume + +inoremap coc#pum#visible() ? coc#pum#confirm() : "\u\\=coc#on_enter()\" +inoremap coc#pum#visible() ? coc#pum#stop() : "\\" +" remap for complete to use tab and +inoremap + \ coc#pum#visible() ? coc#pum#next(1): + \ check_back_space() ? "\" : + \ coc#refresh() +inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" +inoremap coc#refresh() + +hi CocSearch ctermfg=12 guifg=#18A3FF +hi CocMenuSel ctermbg=109 guibg=#13354A +