feat(keymaps): added toggle for treesitter highlights

This commit is contained in:
Folke Lemaitre
2023-10-16 07:29:02 +02:00
parent e26a127185
commit be5eea476c

View File

@ -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)" })