Skip to content

feat: wrapped-compact uses nvim 0.10's inline text for proper padding#277

Merged
rcarriga merged 3 commits intorcarriga:masterfrom
chrisgrieser:dev
Dec 28, 2024
Merged

feat: wrapped-compact uses nvim 0.10's inline text for proper padding#277
rcarriga merged 3 commits intorcarriga:masterfrom
chrisgrieser:dev

Conversation

@chrisgrieser
Copy link
Contributor

@chrisgrieser chrisgrieser commented Jun 5, 2024

Now uses nvim inline text to properly create padding. While I was at it, simplified the code a bit and also fixed two cases where some characters get cut off (notice in the first line of the first before image, the fugiat missing the fug).

before:

Showcase

after:

Showcase

code to test:

local msg = "Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit."

vim.notify(msg, vim.log.levels.INFO, {
	title = "Foobar",
	timeout = false,
})
vim.notify(msg, vim.log.levels.INFO, {
	timeout = false,
})

@rcarriga rcarriga merged commit 228a969 into rcarriga:master Dec 28, 2024
@rcarriga
Copy link
Owner

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants