🚀 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,19 +1,19 @@
if vim.fn.has("nvim-0.10") == 1 then if vim.fn.has("nvim-0.10") == 1 then
return { return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/playground",
dependencies = { dependencies = {
"nvim-treesitter/playground", "nvim-treesitter/nvim-treesitter",
}, build = ":TSInstall query",
build = ":TSInstall query", opts = {
opts = { playground = {
playground = { enable = true,
enable = true, },
}, query_linter = {
query_linter = { enable = true,
enable = true, use_virtual_text = true,
use_virtual_text = true, lint_events = { "BufWrite", "CursorHold" },
lint_events = { "BufWrite", "CursorHold" }, },
}, },
}, },
keys = { keys = {