-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Syntax highlighting in preview mode #154
Comments
LSP for highlighting seems like a completely an overkill. Starting a LSP per language just for highlighting? |
yeah, you're right. What do you think about using chroma library or wrapping bat tool? |
About using chroma |
How about using environment variables, like I use export WALK_PREVIEW_CMD='bat' |
Problem is with tge way bubbletea works. We have to join together two strings. Getting output and joining with walk list is difficult. |
Is embedding moar can help? |
moar is very cool. The problem is with vertical joining. |
lipgloss seems to support layouting. However, using them may require not a few changes to the current implementation... |
Joining i what I use now. The problem is with "spilling". Here explanation with html:
And some highlighted code:
We join the together:
And now This also happens with we truncate part of the string with "closing" escape code:
IF we cut stuff of screen at |
What do you think about gocui? |
Gocui looks cool. |
It will be super if preview mode will support syntax highlighting. As I see it can be implemented using LSP.
The text was updated successfully, but these errors were encountered: