NORMAL ~/wkd/p/insights :set skin=modern utf-8

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.

status
beta — 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.
category
Debug & inspect
neovim
0.9+
repo
github.com/StefanBartl/insights.nvim
commits
156
help
:help insights

demo

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 = {},
}

docs/

git log

  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
  9. docs link back to the wkd family site
  10. feat conflicts: swap own rev-parse+diff for lib.nvim.git.status_porcelain (GS-14)
  11. ci bump leafo/gh-actions-lua and gh-actions-luarocks off Node 20
  12. ci bump JohnnyMorganz/stylua-action to v5 (Node-20 deprecation)

keys

j / k
next / previous line
gg / G
first / last line
⏎
open the line under the cursor
/
search the plugins
:
command line — Tab completes
:help x
vimdoc of a plugin (:e x = plugin page)
:ls · :log · :stack
plugin list · activity stream · dependency graph
:colo x
colorscheme
:set skin=
modern | tui
?
this help
esc
close