-
Leap.nvim can be used in the visual mode (i.e. the x mode) with "s" and "S". I want to deactivate this keymap so that I can use "s"/"S" to add surrounding symbols to a visual selection as offered by nvim-surround. May I ask how to do this by editing leap.nvim's keymap configurations (I'm using LazyVim)? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, I think by the default in the LazyVim configuration you can surround using motion
|
Beta Was this translation helpful? Give feedback.
-
I'm finding that the behavior we get is that leap.nvim does not override surround's maps (when initializing it afterward) since it comes with code to check them before assigning and prints the warning message. I guess having the warning message clutter up output is not ideal, but I am leaning towards just leaving it like this. Because it seems kind of complicated to set this right. I made this config in plugins:
And here is my init.lua
warning still shows up about it trying to assign a 'x' mapping for 'S'. |
Beta Was this translation helpful? Give feedback.
In the LazyVim's webpage you can check how leap.nvim is configured.