A lot of neovim config updates
This commit is contained in:
parent
d3ab72c6c8
commit
98e8510ae7
21 changed files with 874 additions and 152 deletions
dotfiles/neovim/lua/my/plugins
|
@ -1,38 +0,0 @@
|
|||
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…
Add table
Add a link
Reference in a new issue