refactor(lsp): use LspNotify for inlay_hint (#24411)

This commit is contained in:
Chris AtLee
2023-07-22 05:00:17 -04:00
committed by GitHub
parent 24e3ee9d07
commit 4b57ff77fe
2 changed files with 37 additions and 55 deletions

View File

@@ -1572,9 +1572,9 @@ function lsp.start_client(config)
changetracking.flush(client)
end
local result = rpc.notify(method, params)
local client_active = rpc.notify(method, params)
if result then
if client_active then
vim.schedule(function()
nvim_exec_autocmds('LspNotify', {
modeline = false,
@@ -1587,7 +1587,7 @@ function lsp.start_client(config)
end)
end
return result
return client_active
end
---@private