Solved some issues with UltiSnips and YCM
This commit is contained in:
parent
fd58e6871f
commit
de78100473
13
init.vim
13
init.vim
@ -43,13 +43,23 @@ nnoremap <F4> :call vimterm#toggle() <CR>
|
|||||||
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>
|
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>
|
||||||
|
|
||||||
" YouCompleteMe settings
|
" YouCompleteMe settings
|
||||||
let g:ycm_confirm_extra_conf = 1 "Stop asking me every time to confirm
|
let g:ycm_confirm_extra_conf = 0 "Stop asking me every time to confirm
|
||||||
|
|
||||||
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR>
|
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR>
|
||||||
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
|
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
|
||||||
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
|
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
|
||||||
nnoremap <leader>gd :YcmCompleter GetDoc<CR>
|
nnoremap <leader>gd :YcmCompleter GetDoc<CR>
|
||||||
|
|
||||||
|
" make YCM compatible with UltiSnips (using supertab)
|
||||||
|
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
|
||||||
|
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
||||||
|
let g:SuperTabDefaultCompletionType = '<C-n>'
|
||||||
|
|
||||||
|
" better key bindings for UltiSnipsExpandTrigger
|
||||||
|
let g:UltiSnipsExpandTrigger = "<tab>"
|
||||||
|
let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
|
||||||
|
|
||||||
" Custom function to Toggle Tagbar and NERDTree
|
" Custom function to Toggle Tagbar and NERDTree
|
||||||
let s:hidden_all = 0
|
let s:hidden_all = 0
|
||||||
function! ToggleHiddenAll()
|
function! ToggleHiddenAll()
|
||||||
@ -63,6 +73,7 @@ nnoremap <silent> <leader>h :call ToggleHiddenAll()<CR>
|
|||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'SirVer/ultisnips'
|
Plug 'SirVer/ultisnips'
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
|
Plug 'ervandew/supertab'
|
||||||
|
|
||||||
" general
|
" general
|
||||||
Plug 'majutsushi/tagbar'
|
Plug 'majutsushi/tagbar'
|
||||||
|
Loading…
Reference in New Issue
Block a user