From 37e28c58d1619d28dfe9b2e11db95f2bbf5200a1 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 17 Aug 2022 10:14:19 +0200 Subject: [PATCH] plugins: remove uneccessary config for COC * Removes key mapping for the coc-completion which does not use the built-in vim completion mechanism anymore. Co-Authored-by: iGor milhit --- init.vim | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/init.vim b/init.vim index 763822a..2a1abca 100644 --- a/init.vim +++ b/init.vim @@ -190,29 +190,6 @@ else set signcolumn=yes endif -" Use tab for trigger completion with characters ahead and navigate -inoremap - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : - \ coc#refresh() -inoremap pumvisible() ? "\" : "\" - -function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~# '\s' -endfunction -" Use to trigger completion. -if has('nvim') - inoremap coc#refresh() -else - inoremap coc#refresh() -endif - -" Make auto-select the first completion item and notify coc.nvim to -" format on enter, could be remapped by other vim plugin -inoremap pumvisible() ? coc#_select_confirm() - \: "\u\\=coc#on_enter()\" - " Use `[g` and `]g` to navigate diagnostics " Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. nmap [g (coc-diagnostic-prev)