From e4ef7e8352e8a601f1de0a944ad0a467c40fd7e9 Mon Sep 17 00:00:00 2001 From: manuuurino <2855338+manuuurino@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:25:11 +0200 Subject: [PATCH 1/3] feat(lsp): add `nvim-treesitter-context` --- .../lsp/nvim-treesitter-context/README.md | 5 +++++ .../lsp/nvim-treesitter-context/init.lua | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 lua/astrocommunity/lsp/nvim-treesitter-context/README.md create mode 100644 lua/astrocommunity/lsp/nvim-treesitter-context/init.lua diff --git a/lua/astrocommunity/lsp/nvim-treesitter-context/README.md b/lua/astrocommunity/lsp/nvim-treesitter-context/README.md new file mode 100644 index 000000000..b7638ca50 --- /dev/null +++ b/lua/astrocommunity/lsp/nvim-treesitter-context/README.md @@ -0,0 +1,5 @@ +# nvim-treesitter-context + +Show code context. + +**Repository:** diff --git a/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua b/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua new file mode 100644 index 000000000..d04732983 --- /dev/null +++ b/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua @@ -0,0 +1,19 @@ +---@type LazySpec +return { + "nvim-treesitter/nvim-treesitter-context", + event = "User AstroFile", + dependencies = { + "AstroNvim/astrocore", + ---@type AstroCoreOpts + opts = { + mappings = { + n = { + ["uT"] = { + "TSContextToggle", + desc = "Toggle treesitter context", + }, + }, + }, + }, + }, +} From 521c2f78c9792759f1a36db3f0c7da4cd75611c5 Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:55:11 +0200 Subject: [PATCH 2/3] feat(nvim-treesitter-context): Add cmd table to plugin spesification --- lua/astrocommunity/lsp/nvim-treesitter-context/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua b/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua index d04732983..8e92ddb43 100644 --- a/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua +++ b/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua @@ -2,6 +2,7 @@ return { "nvim-treesitter/nvim-treesitter-context", event = "User AstroFile", + cmd = { "TSContextToggle" }, dependencies = { "AstroNvim/astrocore", ---@type AstroCoreOpts From 542541288178f36990a2b0d11f3a549fca6e403e Mon Sep 17 00:00:00 2001 From: manuuurino <2855338+manuuurino@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:01:29 +0200 Subject: [PATCH 3/3] feat(nvim-treesitter-context): moved to `editor-support` category --- .../{lsp => editing-support}/nvim-treesitter-context/README.md | 0 .../{lsp => editing-support}/nvim-treesitter-context/init.lua | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename lua/astrocommunity/{lsp => editing-support}/nvim-treesitter-context/README.md (100%) rename lua/astrocommunity/{lsp => editing-support}/nvim-treesitter-context/init.lua (100%) diff --git a/lua/astrocommunity/lsp/nvim-treesitter-context/README.md b/lua/astrocommunity/editing-support/nvim-treesitter-context/README.md similarity index 100% rename from lua/astrocommunity/lsp/nvim-treesitter-context/README.md rename to lua/astrocommunity/editing-support/nvim-treesitter-context/README.md diff --git a/lua/astrocommunity/lsp/nvim-treesitter-context/init.lua b/lua/astrocommunity/editing-support/nvim-treesitter-context/init.lua similarity index 100% rename from lua/astrocommunity/lsp/nvim-treesitter-context/init.lua rename to lua/astrocommunity/editing-support/nvim-treesitter-context/init.lua