nix-community / nix-ts-mode

An Emacs major mode for editing Nix expressions, powered by tree-sitter [maintainer=@remi-gelinas]
https://github.com/nix-community/nix-ts-mode
Other
52 stars 9 forks source link

Inconsistent (and wrong) indentation between nix-mode and nix-ts-mode #41

Closed arthsmn closed 1 month ago

arthsmn commented 3 months ago

I think this video explains the situation better:

Gravação de tela de 2024-07-29 19-24-45.webm

As you can see, in normal nix-mode the attributes are handled like they should, but in nix-ts-mode the in is indented, as well as the two lines below it. This seems like a bug as the rest is indented as expected. I'm using alejandra as a formatter and it also defaults to the behavior of nix-mode.