diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-02-11 18:07:04 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-02-12 09:31:48 +0000 |
commit | 917172dd9680cc4234a47beee91e8adcaf0e833c (patch) | |
tree | f7b47a97bb4f1f533c4d67d3be2fc3265406ff5e /runtime/lua/vim/lsp/handlers.lua | |
parent | 4682f158a062dd8ede37c568c3e456aac83819fc (diff) | |
download | rneovim-917172dd9680cc4234a47beee91e8adcaf0e833c.tar.gz rneovim-917172dd9680cc4234a47beee91e8adcaf0e833c.tar.bz2 rneovim-917172dd9680cc4234a47beee91e8adcaf0e833c.zip |
fix(lsp): semantic token defer loading
Fixes #27424
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index 2fa539d963..4bb14e5a09 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -644,6 +644,11 @@ M[ms.workspace_inlayHint_refresh] = function(err, result, ctx, config) return vim.lsp.inlay_hint.on_refresh(err, result, ctx, config) end +---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#semanticTokens_refreshRequest +M[ms.workspace_semanticTokens_refresh] = function(err, result, ctx, _config) + return vim.lsp.semantic_tokens._refresh(err, result, ctx) +end + -- Add boilerplate error validation and logging for all of these. for k, fn in pairs(M) do M[k] = function(err, result, ctx, config) |