Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Use your preferred plugin manager. No extra steps needed, besides optionally setting the default keymaps:

>require('leap').set_default_keymaps()

Where/how am I supposed to set this? It's rejected if I just put it in my vimrc as-is even after installing the plugin. Is it a lua snippet? But then where should it be stored?

I have a super minimalist vimrc as it is, so I'd really appreciate more detailed installation instructions...



That is a lua expression I believe (which only works in neovim, hence this plugin being neovim only), you can convert your vimrc to init.lua or make a lua block in your vimrc. The "lua<<EOF" method is common in vimrc xref https://github.com/nanotee/nvim-lua-guide#using-lua-from-vim...

Converting to init.lua is a somewhat fun exercise tho. Once you get a little lua in your config it expands and you get more familiar with it


Thank you very much for this!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: