48 lines
1.2 KiB
Lua
48 lines
1.2 KiB
Lua
local options = {
|
|
title = true,
|
|
undofile = true,
|
|
autowrite = true,
|
|
smartindent = true,
|
|
splitbelow = true,
|
|
splitright = true,
|
|
ignorecase = true,
|
|
smartcase = true,
|
|
breakindent = true,
|
|
termguicolors = true,
|
|
cursorline = true,
|
|
linebreak = true,
|
|
number = true,
|
|
ruler = false,
|
|
hlsearch = false,
|
|
modelines = 0,
|
|
scrolloff = 5,
|
|
pumheight = 10,
|
|
updatetime = 100,
|
|
showbreak = string.rep(' ', 3),
|
|
whichwrap = 'b,h,l,s,<,>,[,],~',
|
|
viewoptions = 'cursor,folds',
|
|
clipboard = 'unnamedplus',
|
|
foldmethod = 'marker',
|
|
signcolumn = 'no',
|
|
completeopt = { 'menu', 'menuone', 'noselect', 'noinsert' },
|
|
titlestring = '%(%m%) %(%{expand("%:~")}%)',
|
|
formatlistpat = '^\\s*\\(\\d\\+[\\]:.)}\\t ]\\|[*-][\\t ]\\)\\s*',
|
|
fillchars = { diff = ' ', eob = ' ', stlnc = ' ', stl = ' ', vert = '│', msgsep = '‾' },
|
|
}
|
|
|
|
vim.opt.nrformats:append 'alpha'
|
|
vim.opt.shortmess:append { s = true, I = true }
|
|
vim.opt.diffopt:append {
|
|
'vertical',
|
|
'iwhite',
|
|
'indent-heuristic',
|
|
algorithm = 'patience',
|
|
foldcolumn = 0,
|
|
'linematch:60',
|
|
}
|
|
vim.opt.formatoptions = vim.opt.formatoptions - 'a' - 't' + 'c' + 'q' - 'o' - 'r' + 'n' + 'j' - '2'
|
|
|
|
for k, v in pairs(options) do
|
|
vim.opt[k] = v
|
|
end
|