Generic options

This commit is contained in:
Fabrice Mouhartem 2023-12-24 11:15:52 +01:00
parent d2469628a5
commit c9db10beb8
2 changed files with 19 additions and 0 deletions

View File

@ -621,6 +621,7 @@ cmp.setup {
}
-- Personnalisation
require('general-options')
require('bepo')
require('mappings')
require('restore-position')

18
lua/general-options.lua Normal file
View File

@ -0,0 +1,18 @@
-- 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"