summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZofia Szweda <sophies@disroot.org>2026-09-12 17:04:18 +0200
committerZofia Szweda <sophies@disroot.org>2026-09-12 17:04:18 +0200
commit6ae8fb5e9a29e0d66b2d3b746608d09c49b1323f (patch)
tree38bbdc42ca9af13bb68e576c77925d1f2db0adf0
parent0eb093a19619c57eaac3323d34033778bf201f31 (diff)
vim: add a keybind for easier access to :LspGotoDeclaration
-rw-r--r--vim/.vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 4c8aa74..ad0cb24 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -119,7 +119,6 @@ let g:which_key_map.b = {
\ 'p' : ['bp', 'previous buffer'],
\ 'b' : ['Buffers', 'fuzzy find buffers'],
\ }
-
nmap <leader>sa <Plug>Ysurround
nmap <leader>saa <Plug>Yssurround
nmap <leader>sc <Plug>Csurround
@@ -163,6 +162,7 @@ function! s:lsp_keymaps() abort
nmap <buffer> gr :LspShowReferences<CR>
nmap <buffer> gi :LspGotoImpl<CR>
nmap <buffer> gt :LspGotoTypeDef<CR>
+ nmap <buffer> gm :LspGotoDefinition<CR>
nmap <buffer> <leader>rn :LspRename<CR>
nmap <buffer> [g :LspDiagPrev<CR>
nmap <buffer> ]g :LspDiagNext<CR>