Skip to content

Commit

Permalink
Configure nil (via Nix in Zed)
Browse files Browse the repository at this point in the history
Separately I've tested and validated multiple others that work more or less
OOTB.
  • Loading branch information
samhh committed Dec 20, 2024
1 parent 24f0a5a commit d578f45
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion home/editor.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs-unstable, ... }:
{ pkgs, pkgs-unstable, ... }:

{
programs.helix = {
Expand Down Expand Up @@ -70,6 +70,20 @@
};
git.inline_blame.enabled = false;
wrap_guides = [ 80 ];

languages.Nix.language_servers = [
"nil"
"!nixd"
];
lsp = {
nil = {
binary.path = "${pkgs.nil}/bin/nil";
settings = {
formatting.command = [ "${pkgs.nixfmt-rfc-style}/bin/nixfmt" ];
nix.flake.autoEvalInputs = true;
};
};
};
};
};

Expand Down

0 comments on commit d578f45

Please sign in to comment.