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

@@ -111,7 +111,7 @@ error('Cannot require a meta file')
---
--- Command modifiers in a structured format. Has the same structure as the
--- "mods" key of |nvim_parse_cmd()|.
--- @field smods table
--- @field smods vim.api.keyset.cmd_mods
--- @class vim.api.keyset.command_info
--- @field name string