diff options
author | Matthew Lemon <y@yulqen.org> | 2023-04-11 14:06:32 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-04-11 14:06:32 +0100 |
commit | b74f76e26755b4c6f2c0fc61e00176587848953d (patch) | |
tree | c8bfc7eb649d925a87bd71a71c3e8e36c9805ae6 /vim/vimrc | |
parent | 9ce59b1edd0c220607b4449bcac7b13363bc2e11 (diff) |
Adds back tab for Ultisnips expansion
And removes tab from YCM, which is useless.
Diffstat (limited to '')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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>" |