Skip to content

vinvolve/data-preview.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

data-preview.nvim

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.

Features

  • 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.

Dependencies

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-tools

Installation

Instal 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,
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages