Added venn + hydra
This commit is contained in:
parent
7eac376607
commit
aece12290b
|
@ -1,5 +1,6 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
local paq = require("paq")
|
local paq = require("paq")
|
||||||
local themePackages = require("my.theme").deps
|
local themePackages = require("my.theme").deps
|
||||||
|
@ -49,6 +50,8 @@ function M.setup()
|
||||||
"vuki656/package-info.nvim", -- shows latest versions in package.json
|
"vuki656/package-info.nvim", -- shows latest versions in package.json
|
||||||
"stevearc/dressing.nvim", -- better ui I guess
|
"stevearc/dressing.nvim", -- better ui I guess
|
||||||
"rktjmp/paperplanes.nvim", -- export to pastebin like services
|
"rktjmp/paperplanes.nvim", -- export to pastebin like services
|
||||||
|
"anuvyklack/hydra.nvim", -- keybinds where you only hit the head once
|
||||||
|
"jbyuki/venn.nvim", -- draw ascii diagrams
|
||||||
|
|
||||||
-- Git stuff
|
-- Git stuff
|
||||||
"ruifm/gitlinker.nvim", -- generate permalinks for code
|
"ruifm/gitlinker.nvim", -- generate permalinks for code
|
||||||
|
|
|
@ -24,6 +24,7 @@ function M.setup()
|
||||||
require("my.plugins.paperplanes").setup()
|
require("my.plugins.paperplanes").setup()
|
||||||
require("my.plugins.neogit").setup()
|
require("my.plugins.neogit").setup()
|
||||||
require("my.plugins.telescope").setup()
|
require("my.plugins.telescope").setup()
|
||||||
|
require("my.plugins.venn").setup()
|
||||||
|
|
||||||
-- require("my.plugins.idris").setup()
|
-- require("my.plugins.idris").setup()
|
||||||
-- require("which-key").setup()
|
-- require("which-key").setup()
|
||||||
|
|
38
dotfiles/neovim/lua/my/plugins/venn.lua
Normal file
38
dotfiles/neovim/lua/my/plugins/venn.lua
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
local M = {}
|
||||||
|
local hint = [[
|
||||||
|
Arrow^^^^^^ Select region with <C-v>
|
||||||
|
^ ^ _K_ ^ ^ _f_: surround it with box
|
||||||
|
_H_ ^ ^ _L_
|
||||||
|
^ ^ _J_ ^ ^ _<Esc>_
|
||||||
|
]]
|
||||||
|
|
||||||
|
function M.setup()
|
||||||
|
local Hydra = require('hydra')
|
||||||
|
|
||||||
|
Hydra({
|
||||||
|
name = 'Draw Diagram',
|
||||||
|
hint = hint,
|
||||||
|
config = {
|
||||||
|
color = 'pink',
|
||||||
|
invoke_on_body = true,
|
||||||
|
hint = {
|
||||||
|
border = 'rounded'
|
||||||
|
},
|
||||||
|
on_enter = function()
|
||||||
|
vim.o.virtualedit = 'all'
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
mode = 'n',
|
||||||
|
body = '<leader>v',
|
||||||
|
heads = {
|
||||||
|
{ 'H', '<C-v>h:VBox<CR>' },
|
||||||
|
{ 'J', '<C-v>j:VBox<CR>' },
|
||||||
|
{ 'K', '<C-v>k:VBox<CR>' },
|
||||||
|
{ 'L', '<C-v>l:VBox<CR>' },
|
||||||
|
{ 'f', ':VBox<CR>', { mode = 'v' } },
|
||||||
|
{ '<Esc>', nil, { exit = true } },
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
Loading…
Reference in a new issue