VidocqH
data-viewer.nvim
Lua

Table view for data files, csv, tsv

Last updated Apr 20, 2026
124
Stars
7
Forks
9
Issues
0
Stars/day
Attention Score
21
Language breakdown
No language data available.
โ–ธ Files click to expand
README

DataViewer.nvim

Neovim-stable Top Language License

Lightweight neovim plugin provides a table view for inspect data files such as csv, tsv

Floating View image

Tab View image

Supported filetypes

  • csv
  • tsv
  • sqlite

Requirements

Usage

Commands

  • :DataViewer -- open with current file and auto detect filetype
  • :DataViewer [filetype] -- open with current file with given filetype
  • :DataViewer [filepath] [filetype] -- open with given file and given filetype
  • :DataViewerNextTable
  • :DataViewerPrevTable
  • :DataViewerClose

Installation

Lazy:

requir("lazy").setup({
  {
    'vidocqh/data-viewer.nvim',
    opts = {},
    dependencies = {
      "nvim-lua/plenary.nvim",
      "kkharji/sqlite.lua", -- Optional, sqlite support
    }
  },
})

Config

Default config:

local config = {
  autoDisplayWhenOpenFile = false,
  maxLineEachTable = 100,
  columnColorEnable = true,
  columnColorRoulette = { -- Highlight groups
    "DataViewerColumn0",
    "DataViewerColumn1",
    "DataViewerColumn2",
  },
  view = {
    float = true, -- False will open in current window
    width = 0.8, -- Less than 1 means ratio to screen width, valid when float = true
    height = 0.8, -- Less than 1 means ratio to screen height, valid when float = true
    zindex = 50, -- Valid when float = true
  },
  keymap = {
    quit = "q",
    next_table = "<C-l>",
    prev_table = "<C-h>",
  },
}

Highlight Groups

You can use your own highlights for columns by change config

  • DataViewerColumn0
  • DataViewerColumn1
  • DataViewerColumn2
  • DataViewerFocusTable

TODO

  • More filetypes support
  • Table styles
๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท VidocqH/data-viewer.nvim ยท Updated daily from GitHub