Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

visibuffer.nvim

Open data files in VisiData inside a Neovim floating window.

Supports CSV, TSV, JSON, Parquet, SQLite, Excel, YAML, HDF5, PCAP, and more.

Requirements

  • Neovim >= 0.9
  • VisiData (pip install visidata)

Installation

lazy.nvim

{
  dir = "/path/to/visibuffer.nvim",
  config = true,
}

Usage

Opening a matching file (e.g. data.csv) automatically launches VisiData in a floating window.

Action Key
Open VisiData for current file <leader>Vd or :Visibuffer

VisiData opens in a terminal float. When you quit VisiData, the float closes and the file is ready to edit in Neovim. Running :Visibuffer again on the same file focuses the existing float.

Configuration

require("visibuffer").setup({
  auto_quit = true,
  args = {},
  filetypes = {
    "*.csv", "*.tsv",
    "*.json", "*.jsonl",
    "*.parquet", "*.feather", "*.arrow",
    "*.yaml", "*.yml",
    "*.xlsx", "*.xls",
    "*.sqlite", "*.sqlite3", "*.db",
    "*.h5", "*.hdf5",
    "*.pcap",
  },
  float = {
    width = 0.9,
    height = 0.9,
    border = "rounded",
    title = " VisiData ",
  },
})
Option Default Description
auto_quit true Close float when VisiData exits
args {} Extra CLI args passed to visidata
filetypes (see above) File globs that trigger VisiData
float.width 0.9 Float width (fraction of editor or absolute px)
float.height 0.9 Float height (fraction of editor or absolute px)
float.border "rounded" Float border style
float.title " VisiData " Float title

About

open datafiles in visidata

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages