Lsp: fix vim.F.ifnil to vim.F.if_nil (#13384)

This commit is contained in:
Raphael
2020-11-26 10:17:03 +08:00
committed by GitHub
parent 0d83a1c43f
commit dd00c74737

View File

@@ -988,8 +988,8 @@ function protocol.resolve_capabilities(server_capabilities)
elseif type(workspace.workspaceFolders) == 'table' then
workspace_properties = {
workspace_folder_properties = {
supported = vim.F.ifnil(workspace.workspaceFolders.supported, false);
changeNotifications = vim.F.ifnil(workspace.workspaceFolders.changeNotifications, false);
supported = vim.F.if_nil(workspace.workspaceFolders.supported, false);
changeNotifications = vim.F.if_nil(workspace.workspaceFolders.changeNotifications, false);
}
}