feat(lua)!: vim.isnil, vim.nonnil, deprecate vim.F #39495

This commit is contained in:
Olivia Kinnear
2026-05-06 07:15:00 -05:00
committed by GitHub
parent f562204a5c
commit fcd1d97265
22 changed files with 197 additions and 58 deletions

View File

@@ -97,7 +97,7 @@ function M.get_parser(buf, lang, opts)
if not api.nvim_buf_is_loaded(buf) then
return nil, string.format('Buffer %s must be loaded to create parser', buf)
end
local parser = vim.F.npcall(M._create_parser, buf, lang, opts)
local parser = vim.npcall(M._create_parser, buf, lang, opts)
if not parser then
return nil,
string.format('Parser could not be created for buffer %s and language "%s"', buf, lang)