Skip to content
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 : dynamic code block highlight area, or some sort of it #83

Open
sadtab opened this issue May 14, 2024 · 2 comments
Open

Comments

@sadtab
Copy link

sadtab commented May 14, 2024

I think it will be a nice feature to highlight the code block based on the longest line in the code block, rather than highlight it till the end of pane

image

vs

image

@sadtab sadtab changed the title Feature request Feature request : dynamic code block highlight area, or some sort of it May 14, 2024
@lukas-reineke
Copy link
Owner

I agree, but I'm not sure if there is a nice way to do this.

@sadtab
Copy link
Author

sadtab commented May 14, 2024

I saw this plug in earlier today, I couldn't manage to make it work, it seems to be non maintained https://github.com/yaocccc/nvim-hl-mdcodeblock.lua

May be gives you some idea, I hopedhave some Lua knowledge to post a 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

No branches or pull requests

2 participants