Code Monkey home page Code Monkey logo

Comments (5)

LudoPinelli avatar LudoPinelli commented on June 20, 2024

I obtain the same results as yours. I use the built-in vim.bo.commentstring to determine the comment_string and it seems that this command doesn't give a consistent/accurate result or I'm missing something, in the former I'm afraid I can't do much about it. A better and definitive solution would be to use a table of the possible comment types as Comment.nvim does but I looked into it and it's beyond what I'm capable to accomplish with my poor understanding of lua, regex and the nvim api right now ^^

For your suggestion to configure the number of spaces between the start of the box and the comment (am I understanding correctly?) I will look into it.

Thanks for your feedback!

from comment-box.nvim.

LudoPinelli avatar LudoPinelli commented on June 20, 2024

Just found a workaround while working on another issue (I just had to trim the comment_string after retrieving it). It should work consistently with all filetypes now.

I close this issue but I keep in mind your suggestion. Thanks again for your feedback!

from comment-box.nvim.

MasouShizuka avatar MasouShizuka commented on June 20, 2024

Lines still have redundant spaces.

In the python file:

#  ────────────────────────────────────────────────────────────
# ╭──────────────────────────────────────────────────────────╮
# │ test                                                     │
# ╰──────────────────────────────────────────────────────────╯
#  ────────────────────────────────────────────────────────────

from comment-box.nvim.

MasouShizuka avatar MasouShizuka commented on June 20, 2024

By the way, there seems to be a small error in the readme?

image

from comment-box.nvim.

LudoPinelli avatar LudoPinelli commented on June 20, 2024

You're right in both cases! Should be fixed now. Thank you!

from comment-box.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.