-
Notifications
You must be signed in to change notification settings - Fork 11
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
Otter in Nix files #59
Comments
Not quite yet, but I'm working on some improvements to the parsing (in |
Really exciting! |
You can already test with this branch, if you want. Let me know if you find bugs :) |
Adding nix support to otter could be interesting to use when writing shell scripts in nix files. It would solve a problem I have where I like to write my shell scripts declaratively with nix but miss out on stuff like formatters (shfmt) and linters (shellcheck). It could also be useful for homemanager users who use P.S. For anyone curious, here's a great video demonstrating writing shell scripts inside nix files. |
The branch is merged now, feel free to try it out. Formatting as you mentioned should also work if you have a language server that supports "textDocument/rangeFormatting" requests, via |
Though if is is a separate formatter not part of a language server, the easier approach is to use vims native filters, e.g. visual mode select followed by |
Would it be possible to use otters in nix files with anotated code blocks?
nvim-treesitter/nvim-treesitter#4658
The text was updated successfully, but these errors were encountered: