summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftplugin/help.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-10 23:07:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-10 23:07:28 +0200
commit511efe89ed084bc922ae142d32e08427859198f4 (patch)
treefef9294b6056b6cf972ea5e689f70da8184fafae /.config/nvim/after/ftplugin/help.lua
parent64e2e90abdca04743558e3baf42a6b714b440bd0 (diff)
nvim: Completely rewrite my configuration
Diffstat (limited to '.config/nvim/after/ftplugin/help.lua')
-rw-r--r--.config/nvim/after/ftplugin/help.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/help.lua b/.config/nvim/after/ftplugin/help.lua
new file mode 100644
index 0000000..0b15270
--- /dev/null
+++ b/.config/nvim/after/ftplugin/help.lua
@@ -0,0 +1,8 @@
+vim.api.nvim_create_autocmd('BufWinEnter', {
+ desc = 'Open (neo)vim help pages in a vertical split',
+ group = vim.api.nvim_create_augroup('mango-vert-help', { clear = true }),
+ buffer = 0,
+ callback = function()
+ vim.cmd.wincmd 'L'
+ end,
+})