-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(editing-support): add
nvim-context-vt
(#858)
* 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
1 parent
21d5729
commit bfd2058
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
20
lua/astrocommunity/editing-support/nvim-context-vt/init.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |