Open daUnknownCoder opened 2 weeks ago
Feels interesting, but will doing this cause serious performance issues? I'll try out the plugin you mentioned first.
Feels interesting, but will doing this cause serious performance issues? I'll try out the plugin you mentioned first.
check this: gh-liu/fold_line.nvim#1
can this display effect meet your need
can this display effect meet your need
wait, thats real cool :lmao: tho the start of line
as in return
got messed up but we can use the rounded_border
glyph for that anyway
can we do this for the current context only tho? coz it may coz perf drops if we do this with the whole file so i guess this is going towards chunk
:damn:
tho this almost looks like the plugin
this is impl by using ibl.hook
and statucol.nvim
, I have write a demo like below
the first one
the second one
which one you like better
what ~godly~ font are you using?
i have just edited the image but is this possible (more similarity to the plugin) tho only when the respective fold is closed
- the first one (what happened to ur symbols in the second one tho 💀?)
the second one use different char and highlight
- whats the difference?
the first render in the max level indent line, while the second only render in the first level
what ~godly~ font are you using?
[font]
size = 12
[font.normal]
family = "JetBrainsMono NFM"
style = "Regular"
[font.bold]
family = "JetBrainsMono NFM"
style = "Bold"
[font.italic]
family = "VictorMono NFM"
style = "Italic"
i have just edited the image but is this possible (more similarity to the plugin) tho only when the respective fold is closed
no, hlchunk
only set extmark
, not monitor fold info... maybe you can search for other plugin
no,
hlchunk
only setextmark
, not monitor fold info... maybe you can search for other plugin
can we just add another spec for indent
like chunk
having chars
, something like:
chars = {
vertical_line = "│", -- or `vertical_line` to be passed as a table for multiple indent chars
left_top = "â•",
left_bottom = "â•°",
},
no, under the current conditions, it is impossible to achieve the style effect of fold-line
. It is necessary to inherit the indent
mod and rewrite the render
function.
no, under the current conditions, it is impossible to achieve the style effect of
fold-line
. It is necessary to inherit theindent
mod and rewrite therender
function.
no im just asking if we can add indent start
and indent end
characters
in the dev brach, you can use filter_list
to define your own hook to achieve this, but this field still unstable, maybe change in future...
if we can get this in![image](https://github.com/shellRaining/hlchunk.nvim/assets/84800625/539b3b68-0b43-4ba5-b8e3-52ff33e615f1)
chunk
(one node) /indent
(whole file) it will be great:so adding fold support will do good: Inspiration: https://github.com/gh-liu/fold_line.nvim