add background toggle

This commit is contained in:
Ray Elliott 2026-01-19 17:30:19 +00:00
commit fc4f980c25
2 changed files with 10 additions and 0 deletions

View file

@ -76,3 +76,12 @@ end, { desc = 'Git: Changed files to quickfix (with status)', silent = true })
map('n', '<leader>hi', function()
require('utils').show_highlight_info()
end, { desc = 'Debug: Show highlight group and color under cursor', silent = true })
-- UI: Toggle background (light/dark)
map('n', '<leader>bg', function()
if vim.o.background == 'dark' then
vim.o.background = 'light'
else
vim.o.background = 'dark'
end
end, { desc = 'UI: Toggle background (light/dark)', silent = true })