migrated to lazy.nvim, cleanup and fixes

This commit is contained in:
2025-03-25 23:13:50 +08:00
parent 93e008c735
commit 19bded245e
11 changed files with 366 additions and 371 deletions

53
lua/plugins/50_ui.lua Normal file
View File

@@ -0,0 +1,53 @@
return {
--
-- Theme
--
{
'navarasu/onedark.nvim',
lazy = false,
config = function()
local ct = require('conftool')
ct.set({'background', 'light'})
vim.cmd [[colo onedark]]
end,
keys = {
{
'<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,
desc = 'toggle color themes'
},
},
},
--
-- Indentation
--
{
'nathanaelkane/vim-indent-guides',
lazy = false,
setup = function()
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
},
--
-- Delimiters
--
{
'hiphish/rainbow-delimiters.nvim',
lazy = false,
}
}