🚀 perf(nvim): playground now loads on key load
This commit is contained in:
parent
76e94d7904
commit
492756eef6
1 changed files with 12 additions and 12 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Reference in a new issue