diff options
author | Chris AtLee <chris.atlee@shopify.com> | 2023-07-22 05:00:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 11:00:17 +0200 |
commit | 4b57ff77febbe6073bc4c5c3a45b0ad0d5d40e6c (patch) | |
tree | 09dbc3d13b19865ed26c57204e7eeb566eaf58b1 /runtime/lua/vim/lsp.lua | |
parent | 24e3ee9d07e1433cb13b4d96ec20999f5f02b204 (diff) | |
download | rneovim-4b57ff77febbe6073bc4c5c3a45b0ad0d5d40e6c.tar.gz rneovim-4b57ff77febbe6073bc4c5c3a45b0ad0d5d40e6c.tar.bz2 rneovim-4b57ff77febbe6073bc4c5c3a45b0ad0d5d40e6c.zip |
refactor(lsp): use LspNotify for inlay_hint (#24411)
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |