From 307fceea38b7352a79b0bdb87025a34b76973867 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:34:13 +0900 Subject: updates --- .../TheSiahxyz/lua/thesiahxyz/plugins/csv.lua | 55 ---------------------- 1 file changed, 55 deletions(-) delete mode 100644 ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua deleted file mode 100644 index e2e66d9..0000000 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua +++ /dev/null @@ -1,55 +0,0 @@ -return { - { - "hat0uma/csvview.nvim", - cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" }, - event = { "BufReadPre *.csv" }, -- Lazy-load the plugin when a CSV file is about to be read - init = function() - local wk = require("which-key") - wk.add({ - mode = { "n", "v", "x" }, - { "cs", group = "csv" }, - }) - end, - config = function() - require("csvview").setup() - - vim.api.nvim_create_autocmd("BufRead", { - pattern = "*.csv", - callback = function() - vim.cmd("CsvViewEnable") - end, - }) - - vim.api.nvim_create_autocmd("FileType", { - pattern = "csv", - callback = function() - vim.keymap.set( - "n", - "zv", - "CsvViewToggle", - { desc = "Toggle CSV view", buffer = true } - ) - end, - }) - end, - keys = { - { - "csv", - function() - local delimiter = vim.fn.input("Delimiter (e.g., ,): ") - local quote_char = vim.fn.input("Quote char (e.g., '): ") - local comment = vim.fn.input("Comment char (e.g., #): ") - local command = string.format( - ":CsvViewToggle delimiter=%s quote_char=%s comment=%s", - delimiter, - quote_char, - comment - ) - - vim.cmd(command) - end, - desc = "Toggle CSV view", - }, - }, - }, -} -- cgit v1.2.3