aboutsummaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
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>"