🚀 perf(nvim): playground now loads on key load

This commit is contained in:
Sergio Laín 2024-03-02 14:09:57 +01:00
parent 76e94d7904
commit 492756eef6
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -1,10 +1,9 @@
if vim.fn.has("nvim-0.10") == 1 then
return {
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"nvim-treesitter/playground",
},
dependencies = {
"nvim-treesitter/nvim-treesitter",
build = ":TSInstall query",
opts = {
playground = {
@ -16,6 +15,7 @@ if vim.fn.has("nvim-0.10") == 1 then
lint_events = { "BufWrite", "CursorHold" },
},
},
},
keys = {
{ "<leader>ciT", "<Cmd>TSHighlightCapturesUnderCursor<CR>", desc = "Treesitter Highlight Groups" },
{ "<leader>cit", "<Cmd>TSPlaygroundToggle<CR>", desc = "Treesitter Playground" },