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 not working #43

Open
aik2mlj opened this issue Nov 30, 2024 · 1 comment
Open

Indentation not working #43

aik2mlj opened this issue Nov 30, 2024 · 1 comment

Comments

@aik2mlj
Copy link

aik2mlj commented Nov 30, 2024

First of all, thank you for your work!

I find out that indentation for typst files is correct in vanilla neovim. However, after installing this treesitter from nvim-treesitter, the indentation stops working as expect.
E.g.,

#{
  let n = 0  // if you insert a new line here, the cursor is supposed to be indented. But instead it isn't after installing this treesitter.
}

I've tested on both neovim v0.10.2 and v0.11.0-dev.

@uben0
Copy link
Owner

uben0 commented Jan 31, 2025

Indeed, with a tree-sitter grammar, there is supposed to be a indentation query file. I lazily postponed the creation of this file...

I can do it for the Helix editor (the editor I use), as this is documented here but I don't know how standard it is. Maybe it will work the same with NeoVim.

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

2 participants