From 4b57ff77febbe6073bc4c5c3a45b0ad0d5d40e6c Mon Sep 17 00:00:00 2001 From: Chris AtLee Date: Sat, 22 Jul 2023 05:00:17 -0400 Subject: refactor(lsp): use LspNotify for inlay_hint (#24411) --- runtime/lua/vim/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/lua/vim/lsp.lua') diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index fa2a888a54..78b5f53723 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -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 -- cgit