🚀 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
|
if vim.fn.has("nvim-0.10") == 1 then
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-treesitter/playground",
|
"nvim-treesitter/playground",
|
||||||
},
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSInstall query",
|
build = ":TSInstall query",
|
||||||
opts = {
|
opts = {
|
||||||
playground = {
|
playground = {
|
||||||
|
@ -16,6 +15,7 @@ if vim.fn.has("nvim-0.10") == 1 then
|
||||||
lint_events = { "BufWrite", "CursorHold" },
|
lint_events = { "BufWrite", "CursorHold" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>ciT", "<Cmd>TSHighlightCapturesUnderCursor<CR>", desc = "Treesitter Highlight Groups" },
|
{ "<leader>ciT", "<Cmd>TSHighlightCapturesUnderCursor<CR>", desc = "Treesitter Highlight Groups" },
|
||||||
{ "<leader>cit", "<Cmd>TSPlaygroundToggle<CR>", desc = "Treesitter Playground" },
|
{ "<leader>cit", "<Cmd>TSPlaygroundToggle<CR>", desc = "Treesitter Playground" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue