simplified themes

This commit is contained in:
Ian Griffin 2025-04-14 09:39:59 +08:00
parent 70b71d56e5
commit 728a7d8fce
2 changed files with 31 additions and 25 deletions

View File

@ -2,32 +2,37 @@ return {
--
-- Theme
--
{
'navarasu/onedark.nvim',
lazy = false,
config = function()
local ct = require('conftool')
ct.set({'background', 'dark'})
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'
},
},
--{
-- 'navarasu/onedark.nvim',
-- lazy = false,
-- opts = {
-- style = 'darker',
-- toggle_style_key = '<leader>c',
-- toggle_style_list = {'warmer', 'light'},
-- },
-- config = function()
-- local ct = require('conftool')
-- -- ct.set({'background', 'dark'})
-- 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

View File

@ -19,6 +19,7 @@ vim.opt.list = true
ct.set('ruler', 'showcmd', 'cursorline', 'title')
-- ct.set('number')
ct.set(
{'background', 'light'},
{'termguicolors', true},
{'signcolumn', 'number'},
{'conceallevel', 0},