diff options
author | Oxbian <got.dacs@slmail.me> | 2024-06-06 12:38:37 +0200 |
---|---|---|
committer | Oxbian <got.dacs@slmail.me> | 2024-06-06 12:38:37 +0200 |
commit | 375403fff8d45f850e68391cebba20fd77d92e15 (patch) | |
tree | 2915ad4d969fbac6b04e4df706d72c6d5b9b8666 /conf | |
parent | 29f83df862462ec2b6ce7e545bd9e2853a5ee0c3 (diff) | |
download | vimrc-375403fff8d45f850e68391cebba20fd77d92e15.tar.gz vimrc-375403fff8d45f850e68391cebba20fd77d92e15.zip |
ADD: C, C++, PHP snippets
Diffstat (limited to 'conf')
-rw-r--r-- | conf/keymaps.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/conf/keymaps.vim b/conf/keymaps.vim index d68b8c4..afef3ca 100644 --- a/conf/keymaps.vim +++ b/conf/keymaps.vim @@ -153,8 +153,9 @@ inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>" " Make <CR> to accept selected completion item or notify coc.nvim to format " <C-g>u breaks current undo, please make your own choice -inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() - \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" +inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : + \"\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" +let g:coc_snippet_next = '<tab>' nmap <silent> gp <Plug>(coc-diagnostic-prev) nmap <silent> gn <Plug>(coc-diagnostic-next) |