nvim: Add dieter/dieter-nocolor variants. Switch with <Leader>uc

This commit is contained in:
Daniel Lundin 2025-01-02 19:46:32 +01:00
parent 091442fcdf
commit 13348be8e9
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
5 changed files with 156 additions and 112 deletions
home/common/nvim

View file

@ -154,6 +154,13 @@ vim.keymap.set("n", "K", function()
vim.keymap.set("n", "<Leader>ub", function()
vim.o.background = (vim.o.background == "light" and "dark" or "light")
end, opts("Toggle dark/light background"))
vim.keymap.set("n", "<Leader>uc", function()
if vim.g.colors_name == "dieter-nocolor" then
vim.cmd [[colorscheme dieter]]
else
vim.cmd [[colorscheme dieter-nocolor]]
end
end, opts("Toggle Dieter colors"))
vim.keymap.set("n", "<Leader>uh", "<cmd>InlayHintsToggle<cr>", opts("Toggle inlay hints"))
vim.keymap.set("n", "<Leader>uw","<cmd>set invwrap<cr>", opts("Toggle line wrapping"))