aboutsummaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-04-11 14:06:32 +0100
committerMatthew Lemon <y@yulqen.org>2023-04-11 14:06:32 +0100
commitb74f76e26755b4c6f2c0fc61e00176587848953d (patch)
treec8bfc7eb649d925a87bd71a71c3e8e36c9805ae6 /vim/vimrc
parent9ce59b1edd0c220607b4449bcac7b13363bc2e11 (diff)
Adds back tab for Ultisnips expansion
And removes tab from YCM, which is useless.
Diffstat (limited to '')
-rw-r--r--vim/vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 35d0661..1e63413 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -82,12 +82,16 @@ nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints)
nnoremap gd :YcmCompleter GoToDefinition<CR>
nnoremap <leader>gr :YcmCompleter GoToReferences<CR>
nnoremap K :YcmCompleter GetDoc<CR>
+" this will disable tab, allowing it to be used for ultisnips
+let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
+let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
+
" snippets
" Trigger configuration. You need to change this to something other than <tab> if you use one of the following:
" - https://github.com/Valloric/YouCompleteMe
" - https://github.com/nvim-lua/completion-nvim
-let g:UltiSnipsExpandTrigger="<C-space>"
+let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"