51 lines
1.5 KiB
Lua
51 lines
1.5 KiB
Lua
local options = {
|
|
backup = false,
|
|
clipboard = "unnamedplus",
|
|
cmdheight = 2,
|
|
completeopt = { "menuone", "noselect" },
|
|
conceallevel = 0,
|
|
fileencoding = "utf-8",
|
|
hlsearch = true,
|
|
ignorecase = true,
|
|
mouse = "a",
|
|
pumheight = 10,
|
|
showmode = false,
|
|
showtabline = 2,
|
|
smartcase = true,
|
|
smartindent = true,
|
|
splitbelow = true,
|
|
splitright = true,
|
|
swapfile = true,
|
|
-- termguicolors = true,
|
|
timeoutlen = 300,
|
|
undofile = true,
|
|
updatetime = 300,
|
|
writebackup = false,
|
|
expandtab = true,
|
|
shiftwidth = 2,
|
|
tabstop = 2,
|
|
cursorline = true,
|
|
number = true,
|
|
relativenumber = false,
|
|
numberwidth = 4,
|
|
|
|
signcolumn = "yes",
|
|
wrap = false,
|
|
linebreak = true,
|
|
scrolloff = 8,
|
|
sidescrolloff = 8,
|
|
guifont = "Hirad Iosevka:h17",
|
|
whichwrap = "bs<>[]hl",
|
|
}
|
|
|
|
for k, v in pairs(options) do
|
|
vim.opt[k] = v
|
|
end
|
|
|
|
-- vim.opt.shortmess = "ilmnrx" -- flags to shorten vim messages, see :help 'shortmess'
|
|
vim.opt.shortmess:append "c" -- don't give |ins-completion-menu| messages
|
|
vim.opt.iskeyword:append "-" -- hyphenated words recognized by searches
|
|
vim.opt.formatoptions:remove({ "c", "r", "o" }) -- don't insert the current comment leader automatically for auto-wrapping comments using 'textwidth', hitting <Enter> in insert mode, or hitting 'o' or 'O' in normal mode.
|
|
vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") -- separate vim plugins from neovim in case vim still in use
|
|
|