summaryrefslogtreecommitdiff
path: root/nvim/lua/options.lua
blob: c5bd4973f9cad536dc454b6e683eb1fef5045661 (plain) (blame)
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
local options = {
	backup = false,
	clipboard = "unnamedplus",
	cmdheight = 2,
	completeopt = { "menuone", "noselect" },
	conceallevel = 0,
	fileencoding = "utf-8",
	hidden = true,
	hlsearch = true,
	ignorecase = true,
	mouse = "a",
	pumheight = 10,
	showmode = false,
	showtabline = 2,
	smartcase = true,
	smartindent = true,
	splitbelow = true,
	splitright = true,
	swapfile = false,
	termguicolors = true,
	undofile = true,
	updatetime = 300,
	writebackup = false,
	shiftwidth = 4,
	tabstop = 4,
	cursorline = true,
	number = true,
	-- relativenumber = true,
	numberwidth = 4,
	signcolumn = "yes",
	wrap = true,
	scrolloff = 8,
	sidescrolloff = 8,
	syntax = "on",
	foldmethod = "marker",
	foldmarker = "{{{,}}}",
	--foldexpr = "nvim_treesitter#foldexpr()",
	foldlevelstart = 0,
	foldenable = true,
	scrolloff = 999,
}
vim.opt.formatoptions:append({ r = true, o = true })
vim.opt.shortmess:append("c")

for k, v in pairs(options) do
	vim.opt[k] = v
end

vim.cmd("set whichwrap+=<,>,[,],h,l")