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

data.nvim

Format and filter structured data (JSON, YAML, XML) in place, in the buffer or a visual selection — pretty, compact (JSON/XML), lines to flatten nested keys onto one path: value per line, keys for just the paths.

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
Editing
neovim
0.9+
repo
github.com/StefanBartl/data.nvim
commits
44
help
:help data

demo

recorded with VHS from demos/data.tape in a clean Neovim — re-recorded weekly
what is shown when
  1. :JSON - pretty-print in place
  2. :JSON sort - sorted keys
  3. :JSON lines - one path per leaf
  4. :JSON to yaml

install

{
  "StefanBartl/data.nvim",
  opts = {},
}

docs/

git log

  1. docs fix DEAD commands.md link (duplicated docs/ prefix)
  2. docs link back to the wkd family site
  3. ci bump leafo/gh-actions-lua and gh-actions-luarocks off Node 20
  4. ci bump JohnnyMorganz/stylua-action to v5 (Node-20 deprecation)
  5. ci bump the failure-log upload to actions/upload-artifact@v7 (Node 24)
  6. ci add job timeouts, failure log artifacts, swap/shada-free nvim runs, pinned deps
  7. fix filter: detect a content change during the preview confirm dialog
  8. fix config: deep-copy setup()'s merge result, not just the load-time default
  9. fix filter: detect a content change on the scope mid-prompt (ERR-30)
  10. fix config: deep-copy DEFAULTS instead of aliasing it (ERR-51)
  11. fix filter: guard against a vanished tracking mark before reading (ERR-02)
  12. fix scope,detect: pcall color_my_ascii's block_at at the fence boundary (ERR-01)

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