Skip to content

Commit

Permalink
feat(debugging): add nvim-dap-virtual-text (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaozwn authored Jul 9, 2023
1 parent 3234929 commit 1635373
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/astrocommunity/debugging/nvim-dap-virtual-text/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# nvim-dap-virtual-text

This plugin adds virtual text support to `nvim-dap`. `nvim-treesitter` is used to find variable definitions.

**Repository:** <https://github.com/theHamsta/nvim-dap-virtual-text>

The `hlgroup` for the virtual text is `NvimDapVirtualText` (linked to Comment). Exceptions that caused the debugger to stop are displayed as `NvimDapVirtualTextError` (linked to `DiagnosticVirtualTextError`). Changed and new variables will be highlighted with `NvimDapVirtualTextChanged` (default linked to `DiagnosticVirtualTextWarn`).
10 changes: 10 additions & 0 deletions lua/astrocommunity/debugging/nvim-dap-virtual-text/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
return {
"theHamsta/nvim-dap-virtual-text",
dependencies = { "mfussenegger/nvim-dap", "nvim-treesitter/nvim-treesitter" },
event = "User AstroFile",
opts = {
commented = true,
enabled = true,
enabled_commands = true,
},
}

0 comments on commit 1635373

Please sign in to comment.