mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 19:11:52 +00:00
fix(treesitter): make Visual hl work consistently with foldtext (#25484)
Problem: Visual highlight is inconsistent on a folded line with
treesitter foldtext.
Solution: Don't added Folded highlight as it is already in background.
This commit is contained in:
@@ -401,7 +401,7 @@ function M.foldtext()
|
||||
if start_col > line_pos then
|
||||
table.insert(result, {
|
||||
line:sub(line_pos + 1, start_col),
|
||||
{ { 'Folded', priority } },
|
||||
{},
|
||||
range = { line_pos, start_col },
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user