neovim-config/lua/plugins/50_ui.lua

54 lines
904 B
Lua

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,
}
}