From a391a8e23b290eebe3e380c298c622fdf308791c Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 3 Jul 2023 23:31:55 -0500 Subject: [PATCH] feat(nvim): add treesitter playground --- dots/.config/nvim/lua/plugins/configs/treesitter.lua | 6 ++++++ dots/.config/nvim/lua/plugins/plugins.lua | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/dots/.config/nvim/lua/plugins/configs/treesitter.lua index 432e19aa..52c33e8a 100755 --- a/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -113,6 +113,12 @@ nvim_treesitter.setup({ }, }, }, + playground = { + enable = true + }, + query_linter = { + enable = true + } }) require("treesitter-context").setup({}) diff --git a/dots/.config/nvim/lua/plugins/plugins.lua b/dots/.config/nvim/lua/plugins/plugins.lua index b38100b0..31251658 100755 --- a/dots/.config/nvim/lua/plugins/plugins.lua +++ b/dots/.config/nvim/lua/plugins/plugins.lua @@ -92,9 +92,10 @@ lazy.setup({ dependencies = { { url = "https://gitlab.com/HiPhish/nvim-ts-rainbow2.git" }, "nvim-treesitter/nvim-treesitter-context", + "nvim-treesitter/playground", "windwp/nvim-ts-autotag", "nvim-treesitter/nvim-treesitter-textobjects", - { "pfeiferj/nvim-hurl", opts = {} }, + { "pfeiferj/nvim-hurl", opts = {}, dev = true }, }, config = function() require("plugins.configs.treesitter")