From 93e008c73586b239b2e11ad897c4bda081c023d7 Mon Sep 17 00:00:00 2001 From: Ian Griffin Date: Thu, 28 Dec 2023 17:06:53 +0800 Subject: updates --- lua/ui.lua | 73 +++++++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 22 deletions(-) (limited to 'lua/ui.lua') 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', + '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 -- cgit v1.3