From f9e9981ce1c17c257012d24bf02b6a015811eb86 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 17 Jun 2024 15:46:18 -0500 Subject: [PATCH] feat(nvim): add `rainbow-csv` --- .../nvim/lua/plugins/configs/rainbow-csv.lua | 21 +++++++++++++++++++ .../nvim/lua/plugins/configs/treesitter.lua | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 users/price/dots/.config/nvim/lua/plugins/configs/rainbow-csv.lua diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/rainbow-csv.lua b/users/price/dots/.config/nvim/lua/plugins/configs/rainbow-csv.lua new file mode 100644 index 00000000..01a5c87f --- /dev/null +++ b/users/price/dots/.config/nvim/lua/plugins/configs/rainbow-csv.lua @@ -0,0 +1,21 @@ +return { + { + "cameron-wags/rainbow_csv.nvim", + config = true, + ft = { + "csv", + "tsv", + "csv_semicolon", + "csv_whitespace", + "csv_pipe", + "rfc_csv", + "rfc_semicolon", + }, + cmd = { + "RainbowDelim", + "RainbowDelimSimple", + "RainbowDelimQuoted", + "RainbowMultiDelim", + }, + }, +} diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua index 3bee9d7d..5e1865ab 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -135,6 +135,13 @@ return { local disabled_filetypes = { "tex", "log", + "csv", + "tsv", + "csv_semicolon", + "csv_whitespace", + "csv_pipe", + "rfc_csv", + "rfc_semicolon", } for _, ft in ipairs(disabled_filetypes) do