Skip to content

All color options don't work except pink #64

Description

@CoolDove

When color is not pink, invoking the hydra will cause this error.

Image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions