bind <F6> to toggle dark/light background

This commit is contained in:
Łukasz Pankowski 2023-09-02 16:49:51 +02:00
parent 7ff5a6a634
commit 01229cc7b0

View File

@ -134,3 +134,13 @@ for i = 1, 9, 1 do
require("harpoon.term").gotoTerminal(i)
end, { desc = '[H]arpoon nav_file [' .. i .. ']' })
end
-- colors
key('n', '<F6>', function()
if vim.o.background == "dark" then
vim.o.background = "light"
else
vim.o.background = "dark"
end
end)