feat: Add in basic opts

This commit is contained in:
punkfairie 2025-03-01 12:33:10 -08:00
parent 094a6a5a7b
commit 313ee92b64
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
2 changed files with 12 additions and 0 deletions

10
lua/config/autocmds.lua Normal file
View file

@ -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,
})

2
lua/config/options.lua Normal file
View file

@ -0,0 +1,2 @@
vim.o.textwidth = 80
vim.o.colorcolumn = '+1'