nvim: Add dieter/dieter-nocolor variants. Switch with <Leader>uc
This commit is contained in:
parent
091442fcdf
commit
13348be8e9
5 changed files with 156 additions and 112 deletions
home/common/nvim
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue