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

Indentation support #17

Open
tomaskallup opened this issue Jan 14, 2025 · 0 comments
Open

Indentation support #17

tomaskallup opened this issue Jan 14, 2025 · 0 comments

Comments

@tomaskallup
Copy link
Contributor

I've been playing a bit with indentation queries for neovim, I've landed on this so far:

[
  (compound_stmt)
  (while_stmt)
  (if_stmt)
  (enum_body)
  (expr_block)
  (initializer_list)
] @indent.begin

[
  ")"
  "}"
] @indent.branch

[
  (block_comment)
  (doc_comment)
] @indent.auto

And it seems to work fine, posting this here mainly for people to find/try/give feedback, I'll PR it after some time of usage, if it doesn't break too much.

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

No branches or pull requests

1 participant