Closed hleft closed 1 year ago
Yes, I also need this feature.
Do you have any suggestions to handle the bottom border for this feature?
Edit: Look like need to refactor the signature of peekFoldedLinesUnderCursor
.
@kevinhwang91 I don't know the relationship between this feature and the bottom border...
Never mind, it will work perfectly when the feature is done.
Done. It's hard coding for now because I can't come up with other use cases.
Done. It's hard coding for now because I can't come up with other use cases.
How to config it work? I update then use CocAction('fold', 'comment')
and preview still after cursor
Make sure UfoInspect
output Selected provider: lsp
and peek folded comment lines.
@kevinhwang91 thanks, worked ok. I forget need change to lsp
The trace
action is broken for this, I'm working on it.
@kevinhwang91 Now preview comment will not overlap, but preview function content will overlap one line comment
I can't get your point, please explain clearly. Maybe a screenshot or a video should help.
@kevinhwang91
preview comment, not overlap function content
preview function content, overlap one line comment
hope preview content not overlap comment
It's expected, depending on your border.
@kevinhwang91 Well, some want to have borders and not overlapping ...
Normal folded lines need to reduce redraw if fire trace
action.
I don't think it will often fire the trace
action under the folded lines with comment
kind.
Feature description
peekFoldedLinesUnderCursor
will open preview window after cursor , so I can see function comment and function content ,but if use
CocAction('fold', 'comment')
, then preview comment will overlap with function, can't see comment and function at the same timeDescribe the solution you'd like
support if fold comment, preview before cursor, instead always preview after cursor
Additional context
No response