1

Repmo lets me repeat a motion, eg after typing 3j I can press ; to move another 3 lines down, or press , to move 3 lines up.

I can map a new key with its forward and backward counterparts like so:

nmap <expr> f repmo#Key('<Plug>(QuickScopef)', '<Plug>(QuickScopeF)')
nmap <expr> F repmo#Key('<Plug>(QuickScopeF)', '<Plug>(QuickScopef)')

How would I go about mapping a call to a Lua function?

Tom Hale
  • 2,681
  • 14
  • 32
  • I'm not sure I understand the link between repmo and lua. May be if you elaborate more about your goal we will be able help you better :-) – Vivian De Smedt Jul 25 '23 at 17:25

1 Answers1

1

I would do:

nnoremap <C-s> <cmd> lua myluafunction()<CR>
Vivian De Smedt
  • 16,336
  • 3
  • 18
  • 37