Added some options and mappings for YouCompleteMe
This commit is contained in:
parent
48de570b12
commit
fd58e6871f
10
init.vim
10
init.vim
@ -31,7 +31,7 @@ let g:airline#extensions#whitespace#enabled = 0
|
||||
" NERDTree
|
||||
let NERDTreeChDirMode = 2
|
||||
|
||||
" Custom key bindings
|
||||
" Custom key bindings general
|
||||
nmap <leader>n :NERDTreeToggle <CR>
|
||||
map <leader>t :TagbarToggle <CR>
|
||||
map <leader>u :MundoToggle <CR>
|
||||
@ -42,6 +42,14 @@ tnoremap <Esc> <C-\><C-n>
|
||||
nnoremap <F4> :call vimterm#toggle() <CR>
|
||||
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>
|
||||
|
||||
" YouCompleteMe settings
|
||||
let g:ycm_confirm_extra_conf = 1 "Stop asking me every time to confirm
|
||||
|
||||
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR>
|
||||
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
|
||||
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
|
||||
nnoremap <leader>gd :YcmCompleter GetDoc<CR>
|
||||
|
||||
" Custom function to Toggle Tagbar and NERDTree
|
||||
let s:hidden_all = 0
|
||||
function! ToggleHiddenAll()
|
||||
|
Loading…
Reference in New Issue
Block a user