-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
When color is not pink, invoking the hydra will cause this error.
Even the configuration in sample has this problem. Sample Vim-Options
Here is my config:
Hydra = require('hydra')
Hydra.setup({})
Hydra({
name = 'Paste Ring',
mode = 'n',
body = '<M-n>',
config = {
color = 'red',
invoke_on_body = true,
foreign_keys = nil,
exit = false,
},
heads = {
{ '<C-n>', "<Plug>(YankyPreviousEntry)" },
{ '<C-p>', "<Plug>(YankyNextEntry)" },
{ '<Esc>', nil, { exit = true, desc=false } },
{ '<C-c>', nil, { exit = true, desc=false } },
},
})When i change red to pink, it will work but foreign keys won't close the hydra (foreign_keys got overwritten i guess). And i'm curious why the color field got designed, i think it's better to just set the two fields individually.
WayenVan
Metadata
Metadata
Assignees
Labels
No labels
