Skip to content

Commit

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

* feat(nvim-context-vt): Add cmd table

* fix(nvim-context-vt): Fix style

* feat(nvim-context-vt): moved to `editing-support` category

---------

Co-authored-by: Uzair Aftab <[email protected]>
Co-authored-by: Uzair Aftab <[email protected]>
  • Loading branch information
3 people authored Apr 10, 2024
1 parent 21d5729 commit bfd2058
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/editing-support/nvim-context-vt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# nvim-context-vt

Virtual text context for neovim treesitter

**Repository:** <https://github.com/andersevenrud/nvim_context_vt>
20 changes: 20 additions & 0 deletions lua/astrocommunity/editing-support/nvim-context-vt/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---@type LazySpec
return {
"andersevenrud/nvim_context_vt",
event = "User AstroFile",
cmd = { "NvimContextVtToggle" },
dependencies = {
"AstroNvim/astrocore",
---@type AstroCoreOpts
opts = {
mappings = {
n = {
["<Leader>uv"] = {
function() require("nvim_context_vt").toggle() end,
name = "Toggle virutal text context",
},
},
},
},
},
}

0 comments on commit bfd2058

Please sign in to comment.