Jeremy Fleischman

Results 382 comments of Jeremy Fleischman

That sounds good to me, @trueNAHO. Want to send in a PR?

> The diff on Nixpkgs is empty, FWIW While true, this isn't a very meaningful statement, right? It's expected because we've already formatted all of nixpkgs with versions of `nixfmt`...

I'm (lightly) opposed to this feature. IMO, it's something your text editor/IDE should be doing instead. > However, treefmt-nix doesn't export the config file, so implementing it in every IDE...

> And I use nix fmt a lot, but have found the nix flake command to be particularly slow to start compared to running treefmt itself. I encourage you to...

(Full disclosure: I still haven't read the code, sorry.) But perhaps it would be useful to split the conversation into 2 questions: 1. Which files should we read in order...

Thanks for the examples! Comments inline. > For what it's worth, I can think of some use-cases that fail one or more of these strictures: > > 1. `git-sh-setup`-style shell...

The whole discussion here is about how opinionated treefmt should be here. Your latest idea with go templates is an elegant way to achieve maximal flexibility, but I'd prefer treefmt...

> We don't want to be responsible for ensuring every single lsp server has a working pre-defined config in nixvim (that's supposed to be nvim-lspconfig's job). Exactly. AFAIK, this quirky...

I think the issue @a-kenji describes is something like this: 1. Create a new `hello.foo` file. 2. Notice that treefmt warns that it doesn't know how to format `.foo` files....

Discussed at today's team meeting. This behavior occurs for the same underlying reason as https://github.com/NixOS/nixfmt/issues/298. We want to continue to preserve empty lines, but we're willing to debate `a`: ```nix...