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

Feature: Allow disabling leader key #67

Open
alisonjenkins opened this issue May 21, 2024 · 2 comments
Open

Feature: Allow disabling leader key #67

alisonjenkins opened this issue May 21, 2024 · 2 comments

Comments

@alisonjenkins
Copy link

The default mapping of the leader key replaces a default mapping of Neovim that I use frequently and I have not found a way to disable the leader key entirely so I can use the proper Neovim Leader key to avoid conflicts with the default Neovim normal mode mappings.

I attempted to set it to null but that results in the default mapping being used and also attempted a empty string but that throws errors.

I am planning to map to my leader (space) followed by a for arrow which is mapped to the arrow open command so this plugin's leader is not required.

@otavioschwanck
Copy link
Owner

The default mapping of the leader key replaces a default mapping of Neovim that I use frequently and I have not found a way to disable the leader key entirely so I can use the proper Neovim Leader key to avoid conflicts with the default Neovim normal mode mappings.

I attempted to set it to null but that results in the default mapping being used and also attempted a empty string but that throws errors.

I am planning to map to my leader (space) followed by a for arrow which is mapped to the arrow open command so this plugin's leader is not required.

settings the leader from arrow to <leader>a doesn't solve the problem?

@alisonjenkins
Copy link
Author

The default mapping of the leader key replaces a default mapping of Neovim that I use frequently and I have not found a way to disable the leader key entirely so I can use the proper Neovim Leader key to avoid conflicts with the default Neovim normal mode mappings.
I attempted to set it to null but that results in the default mapping being used and also attempted a empty string but that throws errors.
I am planning to map to my leader (space) followed by a for arrow which is mapped to the arrow open command so this plugin's leader is not required.

settings the leader from arrow to <leader>a doesn't solve the problem?

No unfortunately, as I don't want the arrow shortcut to just be leader a as I have a nested leader setup where I have mnemonic mappings like for example g goes into my git mappings and ga ultimately resolves in a Git Add.

The built in mapping support should be able to be disabled so we can use the standard mapping features of Neovim to create effects like this and call either the commands that you create or the lua functions directly but as far as I can tell there is no way at current disable the mapping.

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

No branches or pull requests

2 participants