mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
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.
This commit is contained in:
@@ -128,13 +128,13 @@ function vim.inspect_pos(bufnr, row, col, filter)
|
||||
|
||||
if filter.semantic_tokens then
|
||||
results.semantic_tokens = vim.tbl_filter(function(extmark)
|
||||
return extmark.ns:find('vim_lsp_semantic_tokens') == 1
|
||||
return extmark.ns:find('nvim.lsp.semantic_tokens') == 1
|
||||
end, extmarks)
|
||||
end
|
||||
|
||||
if filter.extmarks then
|
||||
results.extmarks = vim.tbl_filter(function(extmark)
|
||||
return extmark.ns:find('vim_lsp_semantic_tokens') ~= 1
|
||||
return extmark.ns:find('nvim.lsp.semantic_tokens') ~= 1
|
||||
and (filter.extmarks == 'all' or extmark.opts.hl_group)
|
||||
end, extmarks)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user