Skip to content

Ability to create virtual spaces (indentation) #20622

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

Closed
IllustratedMan-code opened this issue Oct 12, 2022 · 1 comment
Closed

Ability to create virtual spaces (indentation) #20622

IllustratedMan-code opened this issue Oct 12, 2022 · 1 comment
Labels
enhancement feature request marks marks, extmarks, decorations, virtual text

Comments

@IllustratedMan-code
Copy link

Feature already in Vim?

no

Feature description

Add ability to set extmarks at the beginning of a line while offsetting existing text. Something like:

vim.api.nvim_buf_set_extmark(0, 1, 0, 0, {virt_text = {{"  ", "none"}}, virt_lines_pos="bol"})

would change this:

** my heading
other text

to this:

  ** my heading
other text

This would make implementing things like org-indent-mode possible.

@IllustratedMan-code IllustratedMan-code added the enhancement feature request label Oct 12, 2022
@clason
Copy link
Member

clason commented Oct 12, 2022

Duplicate of #9496

@clason clason marked this as a duplicate of #9496 Oct 12, 2022
@clason clason closed this as completed Oct 12, 2022
@justinmk justinmk added the marks marks, extmarks, decorations, virtual text label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request marks marks, extmarks, decorations, virtual text
Projects
None yet
Development

No branches or pull requests

3 participants