Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theHamsta/nvim-dap-virtual-text
https://github.com/theHamsta/nvim-dap-virtual-text
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/theHamsta/nvim-dap-virtual-text
- Owner: theHamsta
- License: gpl-3.0
- Created: 2020-08-24T14:22:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-04T17:08:30.000Z (4 months ago)
- Last Synced: 2024-10-22T11:21:56.933Z (3 months ago)
- Language: Lua
- Size: 105 KB
- Stars: 864
- Watchers: 5
- Forks: 25
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-neovim - theHamsta/nvim-dap-virtual-text - Virtual text support for nvim-dap. (Debugging / CSV Files)
README
# nvim-dap-virtual-text
This plugin adds virtual text support to [nvim-dap](https://github.com/mfussenegger/nvim-dap).
[nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) is used to find variable definitions.```vim
Plug 'mfussenegger/nvim-dap'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'theHamsta/nvim-dap-virtual-text'
```> [!NOTE]
>
> With Neovim 0.9 and above, `nvim-treesitter` is not hard a dependency.
> This plugin only needs the parsers for the languages you want to use it with
> and `locals.scm` queries defining references and definitions of variables
> (typically provided by nvim-treesitter).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`).The behavior of this plugin can be activated and controlled via a `setup` call
```lua
require("nvim-dap-virtual-text").setup()
```Wrap this call with `lua <