-
Notifications
You must be signed in to change notification settings - Fork 9
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 does not seem to work #17
Comments
When your example is parsed the following tree is the result: (program [0, 0] - [1, 0]
(ERROR [0, 0] - [1, 0]
(command [0, 3] - [0, 7]
name: (word [0, 3] - [0, 7])))) In nvim-treesitter the In order for the indent to work, if test|
end
# After enter
if test
|
end In order for your example |
Thank you for your response. Could this be achieved somehow? Or is this impossible for treesitter? |
One way to achieve indent working for your example is to update If you have time to play around with nvim-treesitter and see if you can create such query so the indent works see:
|
I have treesitter installed and enabled, fish language installed and indentation enabled for all languages.
How ever, fish files don't get automatic indentation. That is, if I type
and press Enter, I get a cursor in the same indent as
i
:when the correct cursor should be indented:
Before migrating to treesitter, I used
dag/vim-fish
and indentation worked.Indentation in other languages works.
Is this a problem with this language spec? How can I help debug and solve this?
The text was updated successfully, but these errors were encountered: