nvim: add <Leader>ub to toggle light/dark background
This commit is contained in:
parent
2994a40003
commit
4e803491d6
1 changed files with 3 additions and 0 deletions
|
@ -147,5 +147,8 @@ vim.keymap.set("n", "K", function()
|
||||||
offset_x = 2,
|
offset_x = 2,
|
||||||
}
|
}
|
||||||
end, {})
|
end, {})
|
||||||
|
vim.keymap.set("n", "<Leader>ub", function()
|
||||||
|
vim.o.background = (vim.o.background == "light" and "dark" or "light")
|
||||||
|
end, opts("Toggle dark/light background"))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue