summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-19 18:34:13 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-19 18:34:13 +0900
commit307fceea38b7352a79b0bdb87025a34b76973867 (patch)
tree382eb3e6a11973bc2c6ba33eee14d43ec2a9566b /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua
parentb66f68b8c014a3041c936ee9de1b57db5bcb50fb (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/csv.lua55
1 files changed, 0 insertions, 55 deletions
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" },
- { "<leader>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",
- "<leader>zv",
- "<cmd>CsvViewToggle<cr>",
- { desc = "Toggle CSV view", buffer = true }
- )
- end,
- })
- end,
- keys = {
- {
- "<leader>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<CR>",
- delimiter,
- quote_char,
- comment
- )
-
- vim.cmd(command)
- end,
- desc = "Toggle CSV view",
- },
- },
- },
-}