summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftplugin/help.lua
diff options
context:
space:
mode:
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,
+})