new config using vim.pack
This commit is contained in:
parent
e685165044
commit
17fda33a90
52 changed files with 629 additions and 659 deletions
15
lua/plugins/table-mode.lua
Normal file
15
lua/plugins/table-mode.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---@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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue