-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Can't make it use treefmt #241
Comments
I can't get it to use my preferred formatter, either. I wonder if "Enable Language Server" overwrites the setting. |
Please check with the latest release. |
Hmm - I used the configuration from the readme for treefmt in my workspace configuration but when I save it still uses my user setting nixpkgs-fmt. Not sure how to debug this. |
Seems I was correct, if you enable the language server the formatter is ignored, and |
Working on dream2nix, have direnv installed and working in the shell and in other vscode projects; it uses
treefmt
for formatting.I set the workspace
nix.formatter
totreefmt
and it keeps using my previous one until I reload the window. I assumevscode-nix-ide/src/formatter.ts
Line 12 in 8e89986
But after reloading the window, it doesn't format at all. Passing
treefmt
or the full path (+reload) doesn't make a difference, vscode now says there's no formatter for nix files installed.The text was updated successfully, but these errors were encountered: