summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/user/options.lua
blob: 201027710bfa0d5654652a86c1438435c8bc52ae (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
-- 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.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