diff --git a/nvim/lua/psoxizsh/plugins/config/coc.lua b/nvim/lua/psoxizsh/plugins/config/coc.lua index fed6586..4fa0012 100644 --- a/nvim/lua/psoxizsh/plugins/config/coc.lua +++ b/nvim/lua/psoxizsh/plugins/config/coc.lua @@ -44,11 +44,7 @@ return function() -- Make to accept selected completion item or notify coc.nvim to format -- u breaks current undo, please make your own choice. - vimp.inoremap({'silent', 'expr'}, '', [[coc#pum#visible() ? coc#pum#confirm() : "\u\\=coc#on_enter()\"]]) - - -- Use to confirm completion - -- could be remapped by other vim plugin, try `:verbose imap `. - vimp.inoremap({'silent', 'expr'}, '', [[coc#refresh()]]) + vimp.inoremap({'silent', 'expr'}, '', [[coc#pum#visible() ? coc#pum#confirm() : "\u\\=coc#on_enter()\"]]) -- Use `[g` and `]g` to navigate diagnostics vimp.nmap({'silent'}, '[g', '(coc-diagnostic-prev)')