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