add background toggle

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

View File

@ -54,6 +54,7 @@ Core keymaps available globally (not plugin-specific). These provide fallbacks f
| n | `<leader>xt` | Toggle diagnostics | Flips `vim.diagnostic.enable()` |
| n | `<leader>gg` | Git: Changed files → quickfix | Lists all modified/deleted/untracked files with status |
| n | `<leader>hi` | Highlight inspector | Shows highlight/capture stack under cursor |
| n | `<leader>bg` | Toggle background (light/dark) | Switches between light and dark colorscheme modes |
### `lua/netrw-config.lua`

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