Debug & inspect · beta · Neovim 0.9+ · 156 commits
insights.nvim
Static analysis of the project you are in, from inside Neovim. One :Insights command over symbol indexing, multi-language import analysis, Lua code metrics, annotation comments (TODO, FIX, … listed project-wide and coloured in the buffer), file-tree utilities, and automatic checks for git conflicts, unused imports and stray dev servers.
demos/insights.tape in a clean Neovim — re-recorded weekly
what is shown when
- annotation comments - TODO, FIX, HACK coloured as you read
- :Insights fileinfo - fs.stat of the buffer in a float
- :Insights todos - every annotation in the tree, to the quickfix list
Install
{
"StefanBartl/insights.nvim",
opts = {},
} Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
Documentation
Recent commits
- refactor todos: back eligible()'s size cache with lib.nvim.cache.memory
- test todos: guarantee todos_spec.lua's restore runs even on failure
- fix todos: re-scan on rename, make SIZE_STAT_TTL_MS a live value
- fix todos: key eligible()'s size_cache on filename too, not just bufnr
- perf todos: cache eligible()'s file-size stat, drop line:sub() allocation
- fix todos: recognize any doc-comment grammar injected on a comment node
- fix todos: detect a keyword inside a comment when the `comment` grammar is injected
- feat notify: move config setup() validation onto lib.nvim.notify
Combos
- Diagnostics neighbors
Related, not interchangeable -- each answers a different "what's going on" question (the editor, the program, the codebase, over time).
dap.nvim , debugging.nvim , runtime-analysis.nvim , lsp.nvim