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.

Repository README :help

recorded with VHS from demos/insights.tape in a clean Neovim — re-recorded weekly
what is shown when
  1. annotation comments - TODO, FIX, HACK coloured as you read
  2. :Insights fileinfo - fs.stat of the buffer in a float
  3. :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

  1. refactor todos: back eligible()'s size cache with lib.nvim.cache.memory
  2. test todos: guarantee todos_spec.lua's restore runs even on failure
  3. fix todos: re-scan on rename, make SIZE_STAT_TTL_MS a live value
  4. fix todos: key eligible()'s size_cache on filename too, not just bufnr
  5. perf todos: cache eligible()'s file-size stat, drop line:sub() allocation
  6. fix todos: recognize any doc-comment grammar injected on a comment node
  7. fix todos: detect a keyword inside a comment when the `comment` grammar is injected
  8. feat notify: move config setup() validation onto lib.nvim.notify

Combos