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
|
local ct = require 'conftool'
--
-- Indentation
--
vim.cmd('filetype plugin indent on')
ct.set('autoindent', 'smartindent', 'cindent')
ct.set({'tabstop', 5}, {'shiftwidth', 5})
--
-- Indent indicators
--
vim.opt.list = true
--vim.cmd([[set lcs=tab:\|\ ]])
--
-- Misc.
--
ct.set('ruler', 'showcmd', 'cursorline', 'title')
-- ct.set('number')
ct.set(
{'termguicolors', true},
{'signcolumn', 'number'},
{'conceallevel', 0},
{'colorcolumn', '81,121'},
{'textwidth', 0},
{'laststatus', 1},
{'wrapmargin', 0}
)
-- dont show line number in terminal window
vim.cmd('autocmd TermOpen * setlocal nonu')
-- turn on mouse
vim.opt.mouse = 'a'
|