21 lines
669 B
Lua
21 lines
669 B
Lua
---@module "utils.plugins"
|
|
---@type Plugin
|
|
return {
|
|
after = "images",
|
|
configure = function(load)
|
|
--load("3rd/diagram.nvim")
|
|
--require("diagram").setup()
|
|
|
|
load("jbyuki/venn.nvim")
|
|
vim.b.ve = "all"
|
|
|
|
vim.api.nvim_create_user_command("VennInit", function()
|
|
vim.keymap.set("n", "J", "<C-v>j:VBox<CR>", { noremap = true })
|
|
vim.keymap.set("n", "K", "<C-v>k:VBox<CR>", { noremap = true })
|
|
vim.keymap.set("n", "L", "<C-v>l:VBox<CR>", { noremap = true })
|
|
vim.keymap.set("n", "H", "<C-v>h:VBox<CR>", { noremap = true })
|
|
-- draw a box by pressing "f" with visual selection,
|
|
vim.keymap.set("v", "f", ":VBox<CR>", { noremap = true })
|
|
end, {})
|
|
end,
|
|
}
|