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

@@ -799,7 +799,7 @@ end
--- @param opts? vim.diagnostic.setqflist.Opts|vim.diagnostic.setloclist.Opts
local function set_list(loclist, opts)
opts = opts or {}
local open = vim.F.if_nil(opts.open, true)
local open = vim.nonnil(opts.open, true)
local title = opts.title or 'Diagnostics'
local winnr = opts.winnr or 0
local bufnr --- @type integer?