Skip to content

feat: show cursorline in full width code blocks#619

Open
sumit-sahrawat wants to merge 1 commit intoMeanderingProgrammer:mainfrom
sumit-sahrawat:sumit/cursorline-in-code
Open

feat: show cursorline in full width code blocks#619
sumit-sahrawat wants to merge 1 commit intoMeanderingProgrammer:mainfrom
sumit-sahrawat:sumit/cursorline-in-code

Conversation

@sumit-sahrawat
Copy link

@sumit-sahrawat sumit-sahrawat commented Mar 10, 2026

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
    },
  },
}
image

@sumit-sahrawat sumit-sahrawat force-pushed the sumit/cursorline-in-code branch from 1962985 to 2c94b3c Compare March 10, 2026 16:18
@sumit-sahrawat sumit-sahrawat changed the title Show cursorline in full width code blocks feat: show cursorline in full width code blocks Mar 10, 2026
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.

1 participant