dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

csv-viewer.lua (950B)


      1 return {
      2   "hat0uma/csvview.nvim",
      3   ---@module "csvview"
      4   ---@type CsvView.Options
      5   opts = {
      6     parser = { comments = { "#", "//" } },
      7     keymaps = {
      8       -- Text objects for selecting fields
      9       textobject_field_inner = { "if", mode = { "o", "x" } },
     10       textobject_field_outer = { "af", mode = { "o", "x" } },
     11       -- Excel-like navigation:
     12       -- Use <Tab> and <S-Tab> to move horizontally between fields.
     13       -- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field.
     14       -- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>.
     15       jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
     16       jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
     17       jump_next_row = { "<Enter>", mode = { "n", "v" } },
     18       jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
     19     },
     20   },
     21   cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" },
     22 }