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

Support for indents? #322

Closed
peterkos opened this issue Oct 5, 2023 · 1 comment · Fixed by #325
Closed

Support for indents? #322

peterkos opened this issue Oct 5, 2023 · 1 comment · Fixed by #325

Comments

@peterkos
Copy link
Contributor

peterkos commented Oct 5, 2023

Hello!

I'm wondering if there's any plans to add an indents.scm file?

nvm-treesitter/.../swift/indents.scm is the closest reference I can find

@alex-pinkus
Copy link
Owner

Good find -- I hadn't noticed that those folks had added indents. It certainly seems reasonable to upstream those (I believe they can be more officially found at https://github.com/nvim-treesitter/nvim-treesitter/blob/2ee71c1a2fa74c10692be10ae420ff0c3a02eb3c/queries/swift/indents.scm).

If you felt like putting up a pull request for that I would absolutely merge it.

alex-pinkus pushed a commit that referenced this issue Oct 8, 2023
`nvim-treesitter` has now been using Swift indents for some time without
any complaints. Copying those indents verbatim upstream so that other
IDEs can support them too.

Fixes #322
alex-pinkus pushed a commit that referenced this issue Oct 9, 2023
`nvim-treesitter` has now been using Swift indents for some time without
any complaints. Copying those indents verbatim upstream so that other
IDEs can support them too.

Fixes #322
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 a pull request may close this issue.

2 participants