mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-05 23:14:40 +02:00
feat(keymaps): add function to toggle between light/dark backgrounds (#2088)
This commit is contained in:
parent
f4ddb16b26
commit
fa6158a595
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ if vim.lsp.buf.inlay_hint or vim.lsp.inlay_hint then
|
|||
map( "n", "<leader>uh", function() Util.toggle.inlay_hints() end, { desc = "Toggle Inlay Hints" })
|
||||
end
|
||||
map("n", "<leader>uT", function() if vim.b.ts_highlight then vim.treesitter.stop() else vim.treesitter.start() end end, { desc = "Toggle Treesitter Highlight" })
|
||||
map("n", "<leader>ub", function() Util.toggle("background", false, {"light", "dark"}) end, { desc = "Toggle Background" })
|
||||
|
||||
-- lazygit
|
||||
map("n", "<leader>gg", function() Util.terminal({ "lazygit" }, { cwd = Util.root(), esc_esc = false, ctrl_hjkl = false }) end, { desc = "Lazygit (root dir)" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue