summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/user/options.lua
blob: 098277d8913dd2315f5d8c6f38bde859f9e9a734 (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
-- 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' },
	-- treesitter
	foldlevel = 3,
}

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

-- vim.cmd('colo evening')