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