Comments (5)
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.
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.
Lines still have redundant spaces.
In the python file:
# ────────────────────────────────────────────────────────────
# ╭──────────────────────────────────────────────────────────╮
# │ test │
# ╰──────────────────────────────────────────────────────────╯
# ────────────────────────────────────────────────────────────
from comment-box.nvim.
By the way, there seems to be a small error in the readme?
from comment-box.nvim.
You're right in both cases! Should be fixed now. Thank you!
from comment-box.nvim.
Related Issues (20)
- Nice plugin, I like it HOT 1
- Are the Keybindings examples about accbox incorrect? HOT 2
- [Feature Request] A box/line picker HOT 1
- [BUG]: CBcatalog error in windows HOT 1
- [Bug] Misalignment due to unstripped input HOT 2
- :CLxyline[num] commands don't pick style number while lua API calls work HOT 1
- doc: Incorrect commands HOT 1
- [Feature Request]: Make the length of the left aligned adapted box exceed box_width HOT 5
- Incorrect handling of inline comments HOT 3
- Incorrect box removal HOT 2
- Intendation isn't preserved HOT 2
- Line parameters have no effect HOT 4
- Unnecessary space added if line contains comment char only HOT 9
- [BUG]: Titled lines and lines lengths are inconsistent in some file types HOT 4
- Not working for `.zshrc` HOT 5
- Plugin fails to build docs because of duplicate tags HOT 1
- [Feature Request]: Use vim.v.register to set the register when yanking HOT 1
- CBline length independent of Comment length
- Adding custom styles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comment-box.nvim.