updates
This commit is contained in:
73
lua/ui.lua
73
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
|
||||
|
||||
Reference in New Issue
Block a user