mirror of
https://github.com/neovim/neovim.git
synced 2026-07-17 06:31:16 +00:00
feat(lua)!: vim.isnil, vim.nonnil, deprecate vim.F #39495
This commit is contained in:
@@ -36,7 +36,6 @@ local M = {}
|
||||
local api = vim.api
|
||||
local lsp = vim.lsp
|
||||
local protocol = lsp.protocol
|
||||
local isnil = require('vim._core.util').isnil
|
||||
|
||||
local rtt_ms = 50.0
|
||||
local ns_to_ms = 0.000001
|
||||
@@ -1011,7 +1010,7 @@ local function trigger(bufnr, clients, ctx)
|
||||
client and client.name or 'UNKNOWN'
|
||||
)
|
||||
)
|
||||
elseif not isnil(result) and #(result.items or result) > 0 then
|
||||
elseif not vim.isnil(result) and #(result.items or result) > 0 then
|
||||
Context.isIncomplete = Context.isIncomplete or result.isIncomplete
|
||||
local encoding = client and client.offset_encoding or 'utf-16'
|
||||
local client_matches, tmp_server_start_boundary
|
||||
|
||||
Reference in New Issue
Block a user