feat(vimfn): use Lua for more excmds/vimfns

Problem:
Too much boilerplate needed to use Lua to impl an excmd or f_xx
function.

Solution:
- Add `nlua_call_vimfn` which takes the args typval, executes
  Lua, and returns a typval.
- refactor(excmd): lua impl for :log, :lsp
This commit is contained in:
Justin M. Keyes
2026-04-17 18:14:14 +02:00
parent 48d11681c2
commit 3ebfa2a3cb
11 changed files with 253 additions and 181 deletions

View File

@@ -48,7 +48,7 @@ local dup_allowed = {
E509 = 2,
E5101 = 2,
E5102 = 2,
E5108 = 4,
E5108 = 6,
E5111 = 2,
E513 = 2,
E521 = 2,