36 lines
1.2 KiB
Lua
36 lines
1.2 KiB
Lua
local init_custom_options = function()
|
|
local custom_options = {
|
|
relativenumber = true, -- Set relative numbered lines
|
|
colorcolumn = "120", -- Indent line at what column? Set something like '99999' to not display it
|
|
scrolloff = 5, -- Determines the number of context lines you would like to see above and below the cursor
|
|
ignorecase = true, -- Ignore case in search
|
|
smartcase = true, -- Case-sensitive search when search term contains uppercase characters. Otherwise, case-sensitive search. timeoutlen = 200, -- Time to wait for a mapped sequence to complete (in milliseconds)
|
|
smarttab = true,
|
|
smartindent = true,
|
|
autoindent = true,
|
|
expandtab = false,
|
|
tabstop = 4,
|
|
shiftwidth = 4,
|
|
nu = true,
|
|
foldmethod = "expr",
|
|
foldexpr = "nvim_treesitter#foldexpr()",
|
|
foldlevel = 5,
|
|
backup = false,
|
|
undodir = os.getenv("HOME") .. "/.vim/undodir",
|
|
undofile = true,
|
|
hlsearch = true,
|
|
incsearch = true,
|
|
termguicolors = true,
|
|
signcolumn = "yes",
|
|
updatetime = 50,
|
|
guicursor = "n-v-c:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20",
|
|
cursorline = true,
|
|
}
|
|
for k, v in pairs(custom_options) do
|
|
vim.opt[k] = v
|
|
end
|
|
end
|
|
init_custom_options()
|
|
|
|
vim.cmd(":set clipboard+=unnamedplus")
|