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: only_custom_keys #87

Closed
1 task done
matthis-k opened this issue Jan 21, 2023 · 2 comments
Closed
1 task done

feature: only_custom_keys #87

matthis-k opened this issue Jan 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@matthis-k
Copy link
Contributor

Did you check the docs?

  • I have read all the LazyVim docs

Is your feature request related to a problem? Please describe.

My personal keymap preferences are very different, so i would have to almost disable all keymaps

Describe the solution you'd like

In the configuration, add a custom_keys_only option (for users to put in lua/plugins/*.lua), which will cause the key list to be replaced instead of extended

Describe alternatives you've considered

A global option, but i think per plugin is more appropiate

Additional context

No response

@matthis-k matthis-k added the enhancement New feature or request label Jan 21, 2023
@folke
Copy link
Collaborator

folke commented Jan 21, 2023

You can replace (or disable) all keymaps for a plugin with:

{
  "nvim-telescope/telescope.nvim",
  keys = function()
     return {}
  end
},

I'll add this to the docs to make it more clear

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2023
@folke
Copy link
Collaborator

folke commented Jan 21, 2023

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

No branches or pull requests

2 participants