diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-06-10 05:22:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 05:22:27 -0700 |
commit | d9af8c2431b7c6395abece8104be6a47d6f61f39 (patch) | |
tree | f61311f8a7f2bc075cbc87497c6483c8fbaa0b8c /runtime/ftplugin/help.lua | |
parent | 4bd86120d41e3b01433004bf761beccb7f3a0167 (diff) | |
parent | a156038d7015e8349ca8886d52eee189941fc0cf (diff) | |
download | rneovim-d9af8c2431b7c6395abece8104be6a47d6f61f39.tar.gz rneovim-d9af8c2431b7c6395abece8104be6a47d6f61f39.tar.bz2 rneovim-d9af8c2431b7c6395abece8104be6a47d6f61f39.zip |
Merge #29238 from clason/feat/help-toc
Diffstat (limited to 'runtime/ftplugin/help.lua')
-rw-r--r-- | runtime/ftplugin/help.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/ftplugin/help.lua b/runtime/ftplugin/help.lua index 67c417b1be..86e181504f 100644 --- a/runtime/ftplugin/help.lua +++ b/runtime/ftplugin/help.lua @@ -26,3 +26,7 @@ elseif vim.endswith(bufname, '/doc/lsp.txt') then { start = [[\*lsp-semantic-highlight\*]], stop = '^======', match = '^@[%w%p]+' }, }) end + +vim.keymap.set('n', 'gO', function() + require('vim.vimhelp').show_toc() +end, { buffer = 0, silent = true }) |