From 511efe89ed084bc922ae142d32e08427859198f4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 10 Jun 2024 23:07:28 +0200 Subject: nvim: Completely rewrite my configuration --- .config/nvim/after/ftplugin/help.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .config/nvim/after/ftplugin/help.lua (limited to '.config/nvim/after/ftplugin/help.lua') 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, +}) -- cgit v1.2.3