summaryrefslogtreecommitdiff
path: root/lua/ui.lua
blob: e09cc95729cc3edaab1cebf0ec6d77c82718ce17 (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
35
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},
	{'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'