summaryrefslogtreecommitdiff
path: root/archive/.config/nvim/lua/options.lua
blob: d0adefbe8c9e048a99050e74e0bb4af9db058542 (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
-- tabs
vim.opt.tabstop = 4
vim.opt.shiftwidth = 0
vim.opt.expandtab = false
vim.opt.autoindent = true
vim.opt.smartindent = true
-- display cursor at front of tabs
vim.opt.list = true
vim.opt.listchars = { tab = "  " }

vim.opt.shortmess:append { s = true, I = true }

vim.g.mapleader = ' '
vim.g.maplocalleader = '\\'

-- line numbers
vim.opt.signcolumn="number"
vim.opt.number=true
vim.opt.fillchars:append({ eob = " " })
vim.opt.scrolloff = 7

vim.opt.splitright = true

vim.opt.cinoptions:append("g0")
vim.opt.cinoptions:append("L0")

vim.opt.cursorline = true

vim.diagnostic.config({
	virtual_text = true,
})

-- undo
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir"
vim.opt.undofile = true

-- misc
vim.opt.updatetime = 700