Closed baodrate closed 2 years ago
This is a very good idea, but I'm currently working on branch add-more-keymaps
, which would essentially nullify this PR. Please wait a few more days while I get that sorted out, and then open up another PR. P.S. In the future please use add
instead of insert
, as there's going to be a breaking change where insert
refers to insert mode mappings, and add
refers to the action of "adding a new surrounding pair", whether it be in insert/normal/visual modes. Thanks!
@qubidt If you would like to, you can make another PR to main
to "get credit" and show up on the contributors page. If you don't really care, then I can make the commit myself.
No worries about credit, it's probably better if you write the descriptions anyways since I'm pretty new to (nvim-)surround so I'm not that familiar with some of these behaviors
Sounds good, I appreciate the contribution nonetheless :sparkling_heart:
@qubidt Keymap descriptions have been added in the latest commit.
Add
desc
to thevim.keymap.set
opt
s. Currently they show up as (e.g.)@<Lua function 40>
when calling:nmap
andy ->
in Which Key, which isn't very friendly.