Skip to content

feat: add overlap and render_offset_top config options#48

Open
charlesg3 wants to merge 1 commit into
3rd:masterfrom
charlesg3:feat/overlap-render-offset
Open

feat: add overlap and render_offset_top config options#48
charlesg3 wants to merge 1 commit into
3rd:masterfrom
charlesg3:feat/overlap-render-offset

Conversation

@charlesg3

Copy link
Copy Markdown

Summary

  • Add overlap (bool, default false) config: when enabled, counts code block lines and passes to image.nvim so the diagram overlaps its source instead of pushing content down
  • Add render_offset_top (number, default 1) config: controls vertical offset passed to image.nvim

Depends on 3rd/image.nvim#349 for the overlap option support.

Fixes #47

Add two new setup options:

- `overlap` (bool, default false): when true, the rendered diagram
  overlaps the source code block instead of pushing content down.
  Diagram.nvim counts the code block lines and passes them to
  image.nvim's overlap option to reduce virtual padding.

- `render_offset_top` (number, default 1): controls the vertical
  offset passed to image.nvim, allowing the rendered image position
  to be adjusted relative to the code fence.
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.

Add overlap and render_offset_top config options

1 participant