nvim-config-kickstart/lua/general-options.lua

19 lines
444 B
Lua
Raw Normal View History

2023-12-24 10:15:52 +00:00
-- general purpose options
local set_true = { 'title', 'relativenumber', 'ruler', 'modeline',
'autoread', 'cursorline', 'cursorcolumn',
'incsearch',
'showcmd', 'showmatch', 'lazyredraw', 'linebreak', 'wrap',
'wildmenu', 'wildignorecase', 'showfulltag', }
vim.o.colorcolumn = '+1'
for _,o in ipairs(set_true) do
vim.o[o] = true
end
-- window management
vim.o.tw = 80
vim.o.winwidth = 88
vim.o.scrolloff = 10
vim.cmd "set formatoptions-=t"