this post was submitted on 10 Oct 2024
15 points (94.1% liked)

Programming

17189 readers
608 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

I have been using a plugin recently in Rider that basically hooks most features of the app to notifications that teach me the current keyboard shortcut for said feature. It has some customization options such as needing a threshold of usages before prompting, reminders, etc. It’s even gamified a little bit by tracking how many times you successfully used the shortcuts and how much time you estimatedly saved.

I really like this plugin and I’m wondering if anyone knows of a similar plugin for NeoVim? I have been exclusively using NeoVim at home for terminal file edits to help learn it and I’m getting better slowly but I just figured maybe I could accelerate this with something helpful like that.

If this doesn’t exist, does anyone have any offhand resources for getting started with NeoVim plugin development?

top 5 comments
sorted by: hot top controversial new old
[–] Chewt@beehaw.org 3 points 5 days ago

theres a plugin called hardtime.nvim that does almost exactly what you have described. It goes a bit further and actually prevents you from doing certain things if you meet a threshold (like spamming j to go down a bunch if lines instea d of something like 15j to move 15 lines down)

https://github.com/m4xshen/hardtime.nvim

[–] SuperFola@programming.dev 8 points 1 week ago (2 children)

I know of which-key.nvim that help you search your key map.

There is somewhere a plugin that will belittle you for using jjj instead of 3j too, and I think that’s more like what you look for. I couldn’t find it, if anyone knows it!

[–] rwdf@lemmy.world 7 points 1 week ago (1 children)

Were you thinking of the Hardtime plugin?

Which-key is great, btw. I think I learn a new shortcut or something every day using it.

[–] SuperFola@programming.dev 3 points 1 week ago

Yes, that’s the one!

[–] astrsk@fedia.io 1 points 1 week ago

Yeah I found which key and that has been a little more useful than nothing, but it’s a half-way solution, like showing shortcut next to menu items in a normal GUI application. Thank you for the suggestion!