mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(lsp): use treesitter highlights for LSP locations
This commit is contained in:
parent
2cd3c13ad7
commit
fc06a363b9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue