From 3d68c910e289621a5c17a3d7f255bc7358e595d9 Mon Sep 17 00:00:00 2001 From: nnduc Date: Tue, 28 Nov 2023 07:13:14 +0000 Subject: [PATCH] Update init.vim --- init.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 09cea47..7a19548 100755 --- a/init.vim +++ b/init.vim @@ -52,7 +52,9 @@ inoremap \ coc#expandableOrJumpable() ? "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" : \ CheckBackSpace() ? "\" : \ coc#refresh() -inoremap coc#pum#visible() ? coc#_select_confirm() : coc#refresh() +inoremap pumvisible() ? coc#_select_confirm() + \: "\u\\=coc#on_enter()\" + function! CheckBackSpace() abort let col = col('.') - 1