A simple Neovim plugin for data engineers and anyone who works with Parquet (and Avro soon). This plugin provides a "quick look" command to instantly preview the contents or metadata of large data files in a floating window, right from your editor.
- Preview Data: Shows the first 20 rows of .parquet in a beautifully formatted table.
- Preview Stats: Shows file metadata for .parquet files (schema, row count, column stats) and .avro files (schema).
- New Features: schema definition in PySpark styles
- Lightweight: Acts as a simple wrapper around external tools.
- Lazy-Loaded: Loads instantly only when you run one of its commands.
This plugin is a wrapper around external command-line tools. You must have them installed and available on your PATH.
- The recommended way to install this on most systems (especially modern Ubuntu) is with pipx:
pipx install parquet-toolsInstal using lazy.nvim
return {
'vinvolve/data-preview.nvim',
cmd = { "DataPreview", "DataPreviewStats" },
config = function()
local data_preview = require("data-preview")
vim.api.nvim_create_user_command(
"DataPreview",
data_preview.preview,
{
nargs = 0,
desc = "Preview data file (Parquet, Avro)",
}
)
vim.api.nvim_create_user_command(
"DataPreviewStats",
data_preview.preview_stats,
{
nargs = 0,
desc = "Preview data file statistics (min, max, nulls, etc.)",
}
)
end,
}