Generic options
This commit is contained in:
parent
d2469628a5
commit
c9db10beb8
1
init.lua
1
init.lua
@ -621,6 +621,7 @@ cmp.setup {
|
||||
}
|
||||
|
||||
-- Personnalisation
|
||||
require('general-options')
|
||||
require('bepo')
|
||||
require('mappings')
|
||||
require('restore-position')
|
||||
|
18
lua/general-options.lua
Normal file
18
lua/general-options.lua
Normal 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"
|
||||
|
Loading…
Reference in New Issue
Block a user