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

nvim_treesitter#indent() should respect breakindent settings #6217

Open
LunarLambda opened this issue Feb 29, 2024 · 1 comment
Open

nvim_treesitter#indent() should respect breakindent settings #6217

LunarLambda opened this issue Feb 29, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request indent Issues or PRs about indentation queries or module

Comments

@LunarLambda
Copy link

Describe the bug

The indentexpr set by nvim-treesitter seems to break options like breakindent, which (in my use case) broke line indenting for lists and paragraphs/indented code blocks in Markdown (tested in conjunction with :set bri briopt=list:-1)

To Reproduce

  1. Open a new file
  2. :setlocal breakindent tw=30
  3. indent the line and type text until it wraps
  4. :setf markdown
  5. try again

Expected behavior

No response

Output of :checkhealth nvim-treesitter

(Cannot copy currently.) Everything is OK, markdown parser has `H FIJ` features, no errors

Output of nvim --version

v0.10.0-dev-2457+ga4b444252

Additional context

Sorry for the somewhat terse report. Typed this on my phone. Able to run any further tests that are needed.

@LunarLambda LunarLambda added the bug Something isn't working label Feb 29, 2024
@lucario387
Copy link
Member

Good point 👍

@lucario387 lucario387 added enhancement New feature or request indent Issues or PRs about indentation queries or module and removed bug Something isn't working labels Feb 29, 2024
@lucario387 lucario387 self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request indent Issues or PRs about indentation queries or module
Projects
None yet
Development

No branches or pull requests

2 participants