summaryrefslogtreecommitdiff
path: root/lua/ui.lua
diff options
context:
space:
mode:
authorIan Griffin <migriffin@disroot.org>2023-12-28 17:06:53 +0800
committerIan Griffin <migriffin@disroot.org>2023-12-28 17:06:53 +0800
commit93e008c73586b239b2e11ad897c4bda081c023d7 (patch)
tree5b04a52270f15b2d469b84350fa97fa6ee31c0a5 /lua/ui.lua
parent0f73cb3fed54b16791cca87271e436b23f62c817 (diff)
updates
Diffstat (limited to 'lua/ui.lua')
-rw-r--r--lua/ui.lua73
1 files changed, 51 insertions, 22 deletions
diff --git a/lua/ui.lua b/lua/ui.lua
index 4e14280..c9c0bfb 100644
--- a/lua/ui.lua
+++ b/lua/ui.lua
@@ -4,41 +4,63 @@ local ct = require 'conftool'
--
-- Theme
--
---vim.cmd('syntax on')
---vim.cmd('colo borterm')
+
pk_use {
- 'navarasu/onedark.nvim',
- setup = function()
- require('conftool').set({'background', 'dark'})
- end,
+ 'Mofiqul/adwaita.nvim',
config = function()
- local theme = require('onedark')
- theme.setup {
- style = 'darker',
- }
- theme.load()
+ local ct = require('conftool')
+ ct.set({'background', 'dark'})
+ -- vim.g.adwaita_darker = true
+ vim.cmd [[colo adwaita]]
+ vim.keymap.set(
+ 'n',
+ '<Leader>c',
+ function()
+ if vim.o.background == 'light' then
+ vim.o.background = 'dark'
+ else
+ vim.o.background = 'light'
+ vim.api.nvim_set_hl(0, 'ColorColumn', {bg = '#c0bfbc'})
+ vim.cmd('redraw')
+ vim.cmd('redraw')
+ end
+ end,
+ {noremap = true}
+ )
+
end
}
+
--
-- Buffer Bar
--
+--[[
pk_use {
'romgrk/barbar.nvim',
config = function()
require('bufferline').setup {
animation = false,
auto_hide = true,
- icons = false,
- icon_separator_active = '|',
- icon_separator_inactive = ' ',
- icon_close_tab = 'X',
- icon_close_tab_modified = '*',
- icon_pinned = '!'
-
+ icons = {
+ filetype = {
+ custom_colors = false,
+ enabled = false
+ },
+ inactive = {left = ' '},
+ modified = {button = '*'},
+ -- separator = {left = '|'},
+ pinned = {button = '!'},
+ button = 'X'
+ },
+ sidebar_filetypes = {
+ aerial = true,
+ netrw = true
+ }
}
end
}
+--]]
--
-- Indentation
@@ -51,12 +73,14 @@ ct.set({'tabstop', 5}, {'shiftwidth', 5})
-- Indent indicators
--
vim.opt.list = true
-vim.cmd([[set lcs=tab:\|\ ]])
+--vim.cmd([[set lcs=tab:\|\ ]])
pk_use {
- 'Yggdroot/indentLine',
+ 'nathanaelkane/vim-indent-guides',
setup = function()
- vim.g.indentLine_char = '|'
- vim.g.indentLine_setConceal = 0
+ vim.g.indent_guides_guide_size = 1
+ vim.g.indent_guides_tab_guides = 0
+ vim.g.indent_guides_start_level = 2
+ vim.g.indent_guides_enable_on_vim_startup = 1
end
}
@@ -74,6 +98,11 @@ ct.set(
{'wrapmargin', 0}
)
+-- Rainbow Delimiters
+pk_use {
+ 'hiphish/rainbow-delimiters.nvim',
+}
+
-- dont show line number in terminal window
vim.cmd('autocmd TermOpen * setlocal nonu')
-- turn on mouse