neovim-config/lua/ui.lua

55 lines
1004 B
Lua

local pk_use = require 'packer'.use
local ct = require 'conftool'
--
-- Theme
--
vim.cmd('syntax on')
pk_use {
'cormacrelf/vim-colors-github',
setup = function()
require('conftool').set({'background', 'dark'})
end,
config = function()
vim.cmd [[colo github]]
end
}
--
-- 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:\|\ ]])
pk_use {
'Yggdroot/indentLine',
setup = function()
vim.g.indentLine_char = '|'
vim.g.indentLine_setConceal = 0
end
}
--
-- EtC.
--
ct.set('ruler', 'showcmd', 'cursorline', 'number', 'termguicolors', 'title')
ct.set(
{'signcolumn', 'yes:1'},
{'laststatus', 1},
{'background', 'light'},
{'conceallevel', 0},
{'textwidth', 0},
{'wrapmargin', 0},
{'laststatus', 1}
)
-- dont show line number in terminal window
vim.cmd('autocmd TermOpen * setlocal nonu')
-- turn on mouse
vim.opt.mouse = 'a'