Skip to content

Commit

Permalink
feat(editing-support): add nvim-treesitter-context (#859)
Browse files Browse the repository at this point in the history
* feat(lsp): add `nvim-treesitter-context`

* feat(nvim-treesitter-context): Add cmd table to plugin spesification

* feat(nvim-treesitter-context): moved to `editor-support` category

---------

Co-authored-by: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com>
  • Loading branch information
manuuurino and Uzaaft authored Apr 10, 2024
1 parent bfd2058 commit deeb4e9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# nvim-treesitter-context

Show code context.

**Repository:** <https://github.com/nvim-treesitter/nvim-treesitter-context>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---@type LazySpec
return {
"nvim-treesitter/nvim-treesitter-context",
event = "User AstroFile",
cmd = { "TSContextToggle" },
dependencies = {
"AstroNvim/astrocore",
---@type AstroCoreOpts
opts = {
mappings = {
n = {
["<Leader>uT"] = {
"<cmd>TSContextToggle<CR>",
desc = "Toggle treesitter context",
},
},
},
},
},
}

0 comments on commit deeb4e9

Please sign in to comment.