1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
-- this file contains general options for nvim
local o = vim.opt
local options = {
-- general options
backup = false,
clipboard = "unnamedplus",
cmdheight = 1,
conceallevel = 0,
fileencoding = "utf-8",
hlsearch = true,
mouse = "a",
showmode = true,
tabstop = 8,
shiftwidth = 8,
smartindent = true,
swapfile = false,
timeoutlen = 1000, --ms
termguicolors = true,
updatetime = 300, --ms
writebackup = false,
expandtab = false, -- !!!!!!!!!
cursorline = false,
number = true,
wrap = false,
-- splitting
splitbelow = true,
splitright = true,
-- autocompletion
completeopt = { 'menuone', 'noselect', 'noinsert' }
}
for key, val in pairs(options) do
o[key] = val
end
-- vim.cmd('colo evening')
|