vim updates
This commit is contained in:
parent
05eb03a38c
commit
2a3b819be1
|
@ -12,6 +12,7 @@ nmap <leader>gt <esc>:up<bar>:GoTest<cr>
|
|||
nmap <leader>gf <esc>:up<bar>:GoTestFunc<cr>
|
||||
nmap <leader>gat <esc>:GoAddTags<cr>
|
||||
nmap <leader>grt <esc>:GoRemoveTags<cr>
|
||||
nmap <leader>ge :GoIfErr<cr>
|
||||
|
||||
nnoremap <silent> dr :GoDebugBreakpoint<cr>
|
||||
nnoremap <silent> d! :GoDebugStart<cr>
|
||||
|
|
8
vimrc
8
vimrc
|
@ -156,6 +156,10 @@ set laststatus=2
|
|||
nnoremap hg :GitGutterLineHighlightsToggle<cr>
|
||||
nmap ]h <Plug>(GitGutterNextHunk)
|
||||
nmap [h <Plug>(GitGutterPrevHunk)
|
||||
omap ih <Plug>(GitGutterTextObjectInnerPending)
|
||||
omap ah <Plug>(GitGutterTextObjectOuterPending)
|
||||
xmap ih <Plug>(GitGutterTextObjectInnerVisual)
|
||||
xmap ah <Plug>(GitGutterTextObjectOuterVisual)
|
||||
|
||||
" Vim-Rust configuration:
|
||||
let g:rustfmt_autosave = 1
|
||||
|
@ -187,8 +191,8 @@ map <Leader>f :ALEFindReferences<CR>
|
|||
map <Leader>fv :ALEFindReferences -vsplit<CR>
|
||||
map <Leader>fh :ALEFindReferences -split<CR>
|
||||
map <Leader>ft :ALEFindReferences -tab<CR>
|
||||
nnoremap <silent> gd :GoToDefinition
|
||||
nnoremap <silent> gD :GoToTypeDefinition
|
||||
nnoremap gD :ALEGoToTypeDefinition<cr>
|
||||
nnoremap gd :ALEGoToDefinition<cr>
|
||||
command GoToDefinition ALEGoToDefinition
|
||||
command GoToTypeDefinition ALEGoToTypeDefinition
|
||||
command FindReferences ALEFindReferences
|
||||
|
|
Loading…
Reference in New Issue