summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-10-01 08:42:22 +0200
committerLinnnus <[email protected]>2024-10-01 08:49:06 +0200
commitf6a10683405d630abff940bdcc49498218da5a2f (patch)
treeb191f4f0f468cbca695b874cf78f66c4275e4383 /home
parent36696602adec6f57240f11c4c8e8752d62be38f2 (diff)
nvim: Add gd mapping for help pages
Diffstat (limited to 'home')
-rw-r--r--home/neovim/init.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/home/neovim/init.vim b/home/neovim/init.vim
index b415ac6..84159a3 100644
--- a/home/neovim/init.vim
+++ b/home/neovim/init.vim
@@ -143,6 +143,9 @@ command WrapItUp set wrap
\ | nnoremap k gk
\ | nnoremap 0 g0
\ | nnoremap $ g$
+" Define go-to-definition help pages, otherwise see the mappings in the hook
+" for LSP configuration.
+autocmd Filetype help nnoremap <buffer> gd <C-]>
" Commands
"""""""""""""""""""""""""""