diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-05-15 15:44:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 15:44:10 -0700 |
commit | 7c13d1a4a836effd436f8bbcdf1d03113f4c48c6 (patch) | |
tree | 87d31c2bac12322cf5a54803110d66ff4be61f17 /runtime/lua/vim/lsp/inlay_hint.lua | |
parent | 007adde1994da7f25eaa0e6a4f402587afbc508d (diff) | |
parent | 4399c4932d7b0565932a667e051f6861b8293157 (diff) | |
download | rneovim-7c13d1a4a836effd436f8bbcdf1d03113f4c48c6.tar.gz rneovim-7c13d1a4a836effd436f8bbcdf1d03113f4c48c6.tar.bz2 rneovim-7c13d1a4a836effd436f8bbcdf1d03113f4c48c6.zip |
Merge #28747 from justinmk/doc
Diffstat (limited to 'runtime/lua/vim/lsp/inlay_hint.lua')
-rw-r--r-- | runtime/lua/vim/lsp/inlay_hint.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/inlay_hint.lua b/runtime/lua/vim/lsp/inlay_hint.lua index 8d22859a80..f98496456b 100644 --- a/runtime/lua/vim/lsp/inlay_hint.lua +++ b/runtime/lua/vim/lsp/inlay_hint.lua @@ -136,7 +136,8 @@ end --- local hint = vim.lsp.inlay_hint.get({ bufnr = 0 })[1] -- 0 for current buffer --- --- local client = vim.lsp.get_client_by_id(hint.client_id) ---- resolved_hint = client.request_sync('inlayHint/resolve', hint.inlay_hint, 100, 0).result +--- local resp = client.request_sync('inlayHint/resolve', hint.inlay_hint, 100, 0) +--- local resolved_hint = assert(resp and resp.result, resp.err) --- vim.lsp.util.apply_text_edits(resolved_hint.textEdits, 0, client.encoding) --- --- location = resolved_hint.label[1].location |