diff options
author | Chinmay Dalal <dalal.chinmay.0101@gmail.com> | 2023-06-20 11:36:54 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 23:06:54 -0700 |
commit | ca5de9306c00d07cce1daef1f0038c937098bc66 (patch) | |
tree | a4531c198f24195e8af966664a80fcb11d05dd21 /runtime/lua/vim/lsp/handlers.lua | |
parent | 72a6643b1380cdf6f1153d70eeaffb90bdca30d6 (diff) | |
download | rneovim-ca5de9306c00d07cce1daef1f0038c937098bc66.tar.gz rneovim-ca5de9306c00d07cce1daef1f0038c937098bc66.tar.bz2 rneovim-ca5de9306c00d07cce1daef1f0038c937098bc66.zip |
feat(lsp): inlay hints #23984
Add automatic refresh and a public interface on top of #23736
* add on_reload, on_detach handlers in `enable()` buf_attach, and
LspDetach autocommand in case of manual detach
* unify `__buffers` and `hint_cache_by_buf`
* use callback bufnr in `on_lines` callback, bufstate: remove __index override
* move user-facing functions into vim.lsp.buf, unify enable/disable/toggle
Closes #18086
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index 44a9a58aca..284e3ef2d0 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -619,9 +619,6 @@ end ---@see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_inlayHint_refresh M['workspace/inlayHint/refresh'] = function(err, _, ctx) local inlay_hint = require('vim.lsp._inlay_hint') - if not inlay_hint.__explicit_buffers[ctx.bufnr] then - return vim.NIL - end if err then return vim.NIL end |