diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index 6b120b2..f4e6110 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -7,7 +7,6 @@ map gv :vsplit:GoAlternate! map gs :split:GoAlternate! map gt :w :GoTest map gf :w :GoTestFunc -nnoremap gd :GoToDefinition nnoremap dr :GoDebugBreakpoint nnoremap d! :GoDebugStart diff --git a/vimrc b/vimrc index dcdea79..954e4df 100644 --- a/vimrc +++ b/vimrc @@ -87,6 +87,8 @@ set viewoptions-=curdir " Key mappings: nmap ,/ :nohlsearch +nnoremap j gj +nnoremap k gk map map map @@ -195,11 +197,12 @@ nmap ]l (ale_next_wrap_error) nmap ad :ALEDetail map g :ALEGoToDefinition -map gt :ALEGoToTypeDefinition map f :ALEFindReferences map fv :ALEFindReferences -vsplit map fh :ALEFindReferences -split map ft :ALEFindReferences -tab +nnoremap gd :GoToDefinition +nnoremap gD :GoToTypeDefinition command GoToDefinition ALEGoToDefinition command GoToTypeDefinition ALEGoToTypeDefinition command FindReferences ALEFindReferences @@ -240,6 +243,7 @@ let g:ale_linters = { \ 'rust': ['analyzer'], \ 'css': ['stylelint'], \ 'python': ['pyls'], + \ 'ruby': ['rubocop'], \ } let g:ale_fixers = { \ '*': ['remove_trailing_lines', 'trim_whitespace'], @@ -248,6 +252,7 @@ let g:ale_fixers = { \ 'go': [], \ 'css': ['stylelint'], \ 'python': ['autopep8'], + \ 'ruby': ['rubocop'], \ } " load internal plugins: