summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/mango/set.lua
blob: 28c5cf270e42d2fce6b977301518be30e5ef5ff7 (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
local lib = require('mango.lib')
local opt = vim.opt

opt.nu = true
opt.relativenumber = true

lib.setTabWidth(4)
opt.expandtab = false
opt.smartindent = true

opt.wrap = false

opt.swapfile = false
opt.backup = false
opt.undodir = os.getenv('XDG_STATE_HOME') .. '/nvim/undo'
opt.undofile = true

opt.hlsearch = true
opt.incsearch = true

opt.termguicolors = true

opt.scrolloff = 8
-- TODO: Research
-- opt.signcolumn = 'yes'
-- opt.isfname:append('@-@')

opt.updatetime = 50

opt.colorcolumn = '81'

-- Disable auto commenting
vim.bo.formatoptions = 'jnql'

opt.splitright = true
opt.splitbelow = true