diff options
author | jdrouhard <john@drouhard.dev> | 2025-01-22 07:02:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-22 21:02:30 +0800 |
commit | 22fd52325bf60cadaf24bca328a602764f53d6a9 (patch) | |
tree | 77c97b436c25590b610ef7d65f98478ac597b69c /runtime/lua/tohtml.lua | |
parent | d46ebd2a74036a349606213fcd2a8b3530adebcf (diff) | |
download | rneovim-22fd52325bf60cadaf24bca328a602764f53d6a9.tar.gz rneovim-22fd52325bf60cadaf24bca328a602764f53d6a9.tar.bz2 rneovim-22fd52325bf60cadaf24bca328a602764f53d6a9.zip |
fix(inspector): update semantic token namespace (#32157)
This updates the extmark namespace to search for when filtering out
semantic tokens to match the new namespace style recently introduced.
Diffstat (limited to 'runtime/lua/tohtml.lua')
-rw-r--r-- | runtime/lua/tohtml.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/tohtml.lua b/runtime/lua/tohtml.lua index ed42b28725..1402dfe494 100644 --- a/runtime/lua/tohtml.lua +++ b/runtime/lua/tohtml.lua @@ -492,7 +492,7 @@ local function _styletable_extmarks_highlight(state, extmark, namespaces) end ---TODO(altermo) LSP semantic tokens (and some other extmarks) are only ---generated in visible lines, and not in the whole buffer. - if (namespaces[extmark[4].ns_id] or ''):find('vim_lsp_semantic_tokens') then + if (namespaces[extmark[4].ns_id] or ''):find('nvim.lsp.semantic_tokens') then notify('lsp semantic tokens are not supported, HTML may be incorrect') return end @@ -514,7 +514,7 @@ local function _styletable_extmarks_virt_text(state, extmark, namespaces) end ---TODO(altermo) LSP semantic tokens (and some other extmarks) are only ---generated in visible lines, and not in the whole buffer. - if (namespaces[extmark[4].ns_id] or ''):find('vim_lsp_inlayhint') then + if (namespaces[extmark[4].ns_id] or ''):find('nvim.lsp.inlayhint') then notify('lsp inlay hints are not supported, HTML may be incorrect') return end |