fix(lsp): use treesitter highlights for LSP locations

This commit is contained in:
Folke Lemaitre 2025-01-15 07:53:52 +01:00
parent 2cd3c13ad7
commit fc06a363b9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -185,7 +185,7 @@ function M.get_locations(method, opts, filter)
file = loc.filename,
pos = { loc.lnum, loc.col },
end_pos = loc.end_lnum and loc.end_col and { loc.end_lnum, loc.end_col } or nil,
comment = loc.text,
line = loc.text,
}
local loc_key = loc.filename .. ":" .. loc.lnum
if filter:match(item) and not (done[loc_key] and opts.unique_lines) then