summaryrefslogtreecommitdiff
path: root/lua/ui.lua
diff options
context:
space:
mode:
authorIan Griffin <migriffin@disroot.org>2022-09-30 20:06:55 +0800
committerIan Griffin <migriffin@disroot.org>2022-09-30 20:06:55 +0800
commit0e1bf5aad478a4030f31acd8bbea874b71e42f43 (patch)
treeb31312df0273548387a613ff2f4e00bc6828b379 /lua/ui.lua
initial commit
Diffstat (limited to 'lua/ui.lua')
-rw-r--r--lua/ui.lua67
1 files changed, 67 insertions, 0 deletions
diff --git a/lua/ui.lua b/lua/ui.lua
new file mode 100644
index 0000000..e391a73
--- /dev/null
+++ b/lua/ui.lua
@@ -0,0 +1,67 @@
+local pk_use = require 'packer'.use
+local ct = require 'conftool'
+
+--
+-- Theme
+--
+vim.cmd('syntax on')
+--[[
+pk_use {
+ 'ellisonleao/gruvbox.nvim',
+ config = function()
+ require('conftool').set({'background', "light"})
+ require('gruvbox').setup({
+ italic = true,
+ bold = true,
+ contrast = "hard"
+ })
+ vim.cmd [[colo gruvbox]]
+-- end
+--}
+--]]
+pk_use {
+ 'Th3Whit3Wolf/one-nvim',
+ config = function()
+ require('conftool').set({'background', "light"})
+ vim.cmd [[colorscheme one-nvim]]
+ 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'