summary refs log tree commit diff
path: root/.vim/plugin/options.lua
blob: a25a646bb30fa05f36bcef7793f66b6709c456c6 (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
local opt = vim.opt

opt.number = true
opt.cursorline = true

-- connect system clipboard
opt.clipboard:prepend({ 'unnamedplus' })

-- preview supported ops in split buffer
opt.inccommand = 'split'

-- show whitespace indicators
opt.listchars:append({ trail = '¬', tab = '> ' })
opt.showbreak = '↪ '

-- show indicator and wrap text at 80 chars
opt.colorcolumn = '+1'
opt.textwidth = 79
opt.wrap = true

opt.conceallevel = 2
opt.concealcursor = nil

-- use treesitter to determine folds
opt.foldmethod = 'expr'
opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
opt.foldlevel = 99