aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-02-04 09:24:35 +0100
committerKarel Kočí <cynerd@email.cz>2024-02-04 09:24:35 +0100
commitaf0d7448982881a5e2d63aff8e2d9c2f47582e8f (patch)
treef4924d5b309035c448d0cb23a6251f51cb60248e /vimrc
parent186ba16ae2c7dafcc1ed39a5fe244ab91f4e58ab (diff)
downloadmyconfigs-af0d7448982881a5e2d63aff8e2d9c2f47582e8f.tar.gz
myconfigs-af0d7448982881a5e2d63aff8e2d9c2f47582e8f.tar.bz2
myconfigs-af0d7448982881a5e2d63aff8e2d9c2f47582e8f.zip
vim: various tweaks and improvements
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index b8889dd..7f3a488 100644
--- a/vimrc
+++ b/vimrc
@@ -200,8 +200,16 @@ let g:UltiSnipsJumpForwardTrigger='<c-j>'
let g:UltiSnipsJumpBackwardTrigger='<c-k>'
" ALE bidings
-nmap <leader>[ <Plug>(ale_go_to_definition)
-nmap <leader>] <Plug>(ale_go_to_definition_in_tab)
+nmap <leader>] <Plug>(ale_go_to_definition_in_split)
+nmap <leader>[ <Plug>(ale_go_to_implementation_in_split)
+nmap <leader>[ <Plug>(ale_go_to_type_definition_in_split)
+nmap <leader>f <Plug>(ale_fix)
+
+" Copy line location
+" TODO this should work but it doesn't for some reason
+" nmap <leader><leader>c :let @+=expand("%:p") . ":" . line(".")<cr>
+nmap <leader><leader>c :exec "!wl-copy '" . expand("%:p") . ":" . line(".") . "'"<cr><cr>
+
" LanguageTool
let g:grammarous#languagetool_cmd = 'languagetool'