neovim-config/lua/ui.lua

36 lines
675 B
Lua

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'