feat: Add in basic opts
This commit is contained in:
parent
094a6a5a7b
commit
313ee92b64
2 changed files with 12 additions and 0 deletions
10
lua/config/autocmds.lua
Normal file
10
lua/config/autocmds.lua
Normal 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
2
lua/config/options.lua
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
vim.o.textwidth = 80
|
||||||
|
vim.o.colorcolumn = '+1'
|
Loading…
Reference in a new issue