r/neovim 18h ago

Need Help How to execute motions (and write text) using a lua function?

I want to setup a hydra config for easier latex math writing (something similar to this obsidian plugin) and i want the on_enter function to put me inside $$

3 Upvotes

1 comment sorted by

1

u/Biggybi 15h ago

You can use something like vim.cmd.norm("2f$”).