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

Better handling of the formatter #128

Open
thefossguy opened this issue Mar 19, 2024 · 1 comment
Open

Better handling of the formatter #128

thefossguy opened this issue Mar 19, 2024 · 1 comment

Comments

@thefossguy
Copy link

I'm not sure what title should be given to this issue but I'm facing a unique (so far) issue. I don't have nixpkgs-fmt installed "system-wide". Instead, with home-manager, I do something like this:

programs.neovim.extraPackages = with pkgs; [
    nixpkgs-fmt
    # many more pkgs, obviously
];

Mainly because these are only needed for a nice Neovim experience and therefore, I don't want them in my $PATH. As a result, format on save with this config doesn't work for me. Unsurprisingly, !nixpkgs-fmt % works.

Is there a workaround or do I need to have nixpkgs-fmt in $PATH?

@thefossguy
Copy link
Author

Possible duplicate of #123?

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

1 participant