Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use <leader> in keymaps #111

Closed
nobleach opened this issue Jul 10, 2024 · 5 comments · Fixed by #110
Closed

How to use <leader> in keymaps #111

nobleach opened this issue Jul 10, 2024 · 5 comments · Fixed by #110

Comments

@nobleach
Copy link

With the previous versions this plugin was using NeoVim's default keymaps with global functions. I realize this package now uses its own internal keymap functionality:

	opts = {
		keymaps = {
			normal = {
				plain_below = "g?p",
				plain_above = "g?P",
				variable_below = "g?v",
				variable_above = "g?V",

I've tried using variable_below = "<leader>cl", but it doesn't seem to work. Is there some other way?

@andrewferrier
Copy link
Owner

@nobleach thanks for spotting this. This was due to a recent change I made where I clumsily defaulted to lazy-loading by mistake. I've put in a temporary workaround for this, so if you pull the latest version, this should start working.

I'll work on a more permanent fix later.

@andrewferrier
Copy link
Owner

(Note to self: add tests for this also using lazy)

@nobleach
Copy link
Author

The temporary workaround appears to work. Thank you for looking at it!

@andrewferrier
Copy link
Owner

Thanks, re-opening just because I want to fix it properly :)

@andrewferrier andrewferrier reopened this Jul 11, 2024
@nobleach
Copy link
Author

Understandable. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants