mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 19:50:09 +02:00
feat(keymaps): added toggle for treesitter highlights
This commit is contained in:
parent
e26a127185
commit
be5eea476c
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ map("n", "<leader>uc", function() Util.toggle("conceallevel", false, {0, conceal
|
|||
if vim.lsp.inlay_hint then
|
||||
map("n", "<leader>uh", function() vim.lsp.inlay_hint(0, nil) 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" })
|
||||
|
||||
-- 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