Replies: 1 comment
-
Okay, I found this #468 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to remap a key in the lazy.nvim UI.
When I press K in the lazy.nvim UI, it opens a URL. However, my personal preference is for K to be mapped to 3k (move up 3 lines). How can I change this default mapping?
I've tried using vim.keymap.set directly, both before and after
require('lazy').setup
, but it doesn't take effect in the UI.According to the lazy.nvim documentation, I tried using custom_keys. The A key worked as expected (it printed the plugin name, which was just for testing), but K did not.
Here's my simplified init.lua file. In the lazy.nvim UI, K still opens the URL, while A correctly prints the plugin name:
So, the custom_keys method seems to be working for custom keybindings, but it doesn't appear to override the default UI keybindings. Is it impossible to modify these default keybindings provided by the lazy.nvim UI?
I've tested this in a fresh Windows 11 sandbox environment with a clean install of Neovim and lazy.nvim to ensure no other configurations are interfering.
Beta Was this translation helpful? Give feedback.
All reactions