feat: show cursorline in full width code blocks#619
Open
sumit-sahrawat wants to merge 1 commit intoMeanderingProgrammer:mainfrom
Open
feat: show cursorline in full width code blocks#619sumit-sahrawat wants to merge 1 commit intoMeanderingProgrammer:mainfrom
sumit-sahrawat wants to merge 1 commit intoMeanderingProgrammer:mainfrom
Conversation
1962985 to
2c94b3c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This small code change makes cursorline show up in code blocks.
I'm new at nvim lua, and I don't understand the code at all. I was trying to read the code and see if I could make this work and a little hit-and-trial got me here. I was curious how the cursorline worked on the language line but not on the code lines, and wanted to see if I could replicate the same behaviour for code lines as well.
I'm honestly not sure if this breaks anything else. Please let me know if this is a good idea and I can update the PR to fix docs/screenshots etc.
In my limited testing with the following config it's working well:
{ "MeanderingProgrammer/render-markdown.nvim", opts = { code = { sign = false, -- from LazyVim width = "full", border = "thick", right_pad = 1, -- from LazyVim }, }, }