Update keymaps

This commit is contained in:
Alex Yatskov 2021-01-19 20:08:26 -08:00
parent 8d1b413493
commit d1fb9f69e1

View File

@ -36,12 +36,17 @@ nnoremap <C-l> <C-W>l
nnoremap j gj
nnoremap k gk
inoremap <expr><TAB> pumvisible() ? '<C-y>' : '<TAB>'
inoremap <expr><CR> pumvisible() ? '<C-e><CR>' : '<CR>'
inoremap <Expr><Tab> pumvisible() ? '<C-y>' : '<Tab>'
inoremap <Expr><Cr> pumvisible() ? '<C-e><Cr>' : '<Cr>'
" functions
nnoremap <Leader>ig :Guid<Cr>
" ale
nnoremap gd :ALEGoToDefinition<Cr>
nnoremap gD :ALEGoToTypeDefinition<Cr>
nnoremap gr :ALEFindReferences<Cr>
" fzf
nnoremap <silent><Leader>fg :GFiles<Cr>
nnoremap <silent><Leader>ff :Files ~<Cr>
@ -74,4 +79,4 @@ auto FileType go nmap <S-F11> :GoDebugStepOut<Cr>
auto FileType go nmap <S-F5> :GoDebugStop<Cr>
" vim-fswitch
auto FileType cpp noremap <silent> <Leader>fs :FSHere<Cr>
auto FileType cpp noremap gfs :FSHere<Cr>