summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/user/options.lua
blob: efa207ab4410e0c6235cb4c94ba660a9fa15fe51 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
-- 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,
	relativenumber = true,
	wrap = false,
	-- splitting
	splitbelow = true,
	splitright = true,
	-- autocompletion
	completeopt = { 'menuone', 'noselect', 'noinsert' },
	-- treesitter
	foldlevel = 3,
	spell = ture,
	spelllang = "en_gb,ru_yo",
	mousemodel = "popup",
	spellsuggest = "best,5",
	undofile = true,
	undodir = "/home/main/.vim/undo",
	-- list = true,
	-- listchars = "space:*,tab:--"
}

for key, val in pairs(options) do
	o[key] = val
end

-- vim.cmd('colo evening')