LudoPinelli / comment-box.nvim

:sparkles: Clarify and beautify your comments and plain text files using boxes and lines.
MIT License
408 stars 15 forks source link

Line parameters have no effect #38

Closed savchenko closed 9 months ago

savchenko commented 9 months ago

Configured with:

line = {
        line = "-",
        line_start = "+",
        line_end = "+",
        title_left = "[",
        title_right = "]",
},

Executing :CBllline and/or :CBccline still creates line like this:

-- ── Yes, just like this one ────────────────────────────────────────────────────

Interestingly, borders{} works as expected and :CBclbox correctly uses chosen set of characters.

LudoPinelli commented 9 months ago

Thank you, I'll look into it!

LudoPinelli commented 9 months ago

The problem is in your config: replace line = { with lines = { :)

EDIT: the cool thing is that it helped me spot another bug for settings detection!

The-Plottwist commented 9 months ago

Same problem at the Readme too line = ... whereas it should be line(s) = .... Side Note: Ahh... it got Me headaches xD

LudoPinelli commented 9 months ago

Oh god, sorry about that :sweat:, README and doc fixed, thanks!