diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua new file mode 100644 index 0000000..135b14e --- /dev/null +++ b/lua/config/autocmds.lua @@ -0,0 +1,10 @@ +-- Open help window in a vsplit to the right. +vim.api.nvim_create_autocmd('BufWinEnter', { + group = vim.api.nvim_create_augroup('help_window_right', {}), + pattern = { '*.txt' }, + callback = function() + if vim.o.filetype == 'help' then + vim.cmd.wincmd 'L' + end + end, +}) diff --git a/lua/config/options.lua b/lua/config/options.lua new file mode 100644 index 0000000..2a97b2b --- /dev/null +++ b/lua/config/options.lua @@ -0,0 +1,2 @@ +vim.o.textwidth = 80 +vim.o.colorcolumn = '+1'