15 lines
534 B
Lua
15 lines
534 B
Lua
---@module "utils.plugins"
|
|
---@type Plugin
|
|
return {
|
|
configure = function(load)
|
|
load("dhruvasagar/vim-table-mode")
|
|
|
|
vim.g.table_mode_corner = "+"
|
|
|
|
vim.keymap.set("n", "<LocalLeader>tm", "<cmd>TableModeToggle<cr>", { desc = "toggla table mode" })
|
|
vim.keymap.set("n", "<LocalLeader>tt", "<cmd>Tableize<cr>", { desc = "transform CVS to table" })
|
|
vim.keymap.set("n", "<LocalLeader>T", function()
|
|
vim.api.nvim_command("Tableize/" .. vim.fn.input("what separator to use? "))
|
|
end, { desc = "transform CVS to table" })
|
|
end,
|
|
}
|