diff options
author | davidovski <david@davidovski.xyz> | 2024-04-21 22:32:28 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2024-04-21 22:32:28 +0100 |
commit | 28be860614d9f900fba8803f21cc486e1e22ff65 (patch) | |
tree | 30a7a33305c67ef413e09044f5b8b673e9c031da | |
parent | 729fd14c6be8b1531bbc7bd05fd3b71f385d3b6f (diff) |
udpate vimrc
-rw-r--r-- | config/vim/vimrc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/vim/vimrc b/config/vim/vimrc index 0e37dc3..6a568a8 100644 --- a/config/vim/vimrc +++ b/config/vim/vimrc @@ -71,13 +71,13 @@ nmap <silent> <leader>re <Plug>(coc-codeaction-refactor) xmap <silent> <leader>r <Plug>(coc-codeaction-refactor-selected) " nmap <silent> <leader>r <Plug>(coc-codeaction-refactor-selected) -"inoremap <silent><expr> <TAB> -" \ coc#pum#visible() ? coc#pum#next(1) : -" \ CheckBackspace() ? "\<Tab>" : -" \ coc#refresh() -"inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>" +inoremap <silent><expr> <TAB> + \ coc#pum#visible() ? coc#pum#next(1) : + \ CheckBackspace() ? "\<Tab>" : + \ coc#refresh() +inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>" -"inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() +inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" function! CheckBackspace() abort |