33 lines
1 KiB
Lua
33 lines
1 KiB
Lua
local options = {
|
|
clipboard = "unnamedplus",
|
|
mouse = "n",
|
|
fileencoding = "utf-8",
|
|
relativenumber = true,
|
|
cursorline = false,
|
|
number = true,
|
|
smartindent = true,
|
|
smartcase = true,
|
|
showmode = true,
|
|
termguicolors = true,
|
|
-- winbar = "",
|
|
ignorecase = true,
|
|
showtabline = 2,
|
|
timeoutlen = 200, -- time to wait for a mapped sequence to complete (in milliseconds)
|
|
undofile = true, -- enable persistent undoi updatetime = 300, -- faster completion (4000ms default)
|
|
writebackup = false, -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
|
|
expandtab = true, -- convert tabs to spaces
|
|
shiftwidth = 2, -- the number of spaces inserted for each indentation
|
|
tabstop = 2, -- insert 2 spaces for a tab
|
|
scrolloff = 8, -- is one of my fav
|
|
sidescrolloff = 8,
|
|
spell = false,
|
|
syntax = "off",
|
|
spelllang = "en_us",
|
|
mousemodel = "popup_setpos",
|
|
}
|
|
|
|
--vim.opt.shortmess:append "c"
|
|
|
|
for k, v in pairs(options) do
|
|
vim.opt[k] = v
|
|
end
|