-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Make the length of the left aligned adapted box exceed box_width #33
Comments
By the way, report a few more bugs. The following function api seem to have not changed, and still have to use the original api, like require("comment-box").labox()
require("comment-box").cabox()
require("comment-box").arbox() An error occurs when using titled lines: E5108: Error executing lua: ...nvim-data/lazy/comment-box.nvim/lua/comment-box/init.lua:678: attempt to perform arithmetic on local 'lend' (a nil value)
stack traceback:
...nvim-data/lazy/comment-box.nvim/lua/comment-box/init.lua:678: in function 'create_titled_line'
...nvim-data/lazy/comment-box.nvim/lua/comment-box/init.lua:794: in function 'display_titled_line'
...nvim-data/lazy/comment-box.nvim/lua/comment-box/init.lua:1014: in function 'llline'
...izuka/AppData/Local/nvim/lua/plugins/editing_support.lua:390: in function <...izuka/AppData/Local/nvim/lua/plugins/editing_support.lua:390> |
Not currently, I will think of a way to allow it.
You're right, it should be fixed now! (I still kept the old ones for now, so both should work)
Just to make sure, because I add this bug a couple commits ago, is the plugin updated to the last release in your config? (If you use lazy.nvim -> Thanks for your bug reports and suggestion! |
I think the reason is that line 678 of local is_block
if math.abs(lend - lstart) > 0 then
is_block = true
else
is_block = false
end |
Oh, I was using the command and not the function, it's why I couldn't replicate the problem. And you already found the bug! It's fixed, let me know how it goes, thanks a lot :) |
Okay, it works. |
When I use left aligned adapted box, I don't want it to wrap at
box_width
.Currently to do this I have to setup like:
But this will affect other box functions.
Is there a related setting, or can the setting be passed to function, something like:
The text was updated successfully, but these errors were encountered: