From 09a2093f9086f2b1e035b455ae8bfbb60b8585fa Mon Sep 17 00:00:00 2001 From: alexion Date: Sat, 26 Sep 2026 22:36:03 -0400 Subject: [PATCH] feat(nvim): enable nixd --- configs/nixos/modules/shell/nvim/default.nix | 3 +++ src/skills/style/nix/SKILL.md | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configs/nixos/modules/shell/nvim/default.nix b/configs/nixos/modules/shell/nvim/default.nix index 8527d34..97dfa1e 100644 --- a/configs/nixos/modules/shell/nvim/default.nix +++ b/configs/nixos/modules/shell/nvim/default.nix @@ -32,6 +32,7 @@ in ripgrep # backs the picker's live grep fd # backs the picker's file finder wl-clipboard # provides a non-blocking clipboard provider on Wayland + nixd # provides Nix language-server support ]; globals.mapleader = " "; @@ -189,6 +190,8 @@ in installRustc = false; installRustfmt = false; }; + + servers.nixd.enable = true; }; gitsigns = { diff --git a/src/skills/style/nix/SKILL.md b/src/skills/style/nix/SKILL.md index cfcd9bd..63b91b9 100644 --- a/src/skills/style/nix/SKILL.md +++ b/src/skills/style/nix/SKILL.md @@ -12,7 +12,10 @@ After editing Nix files, run: ```bash nix run .#fix +bazel run //src/natu:natu -- ``` -Finish when `nix run .#fix` succeeds and the Nix change follows the loaded rules. -If the command fails, report the failure. +Pass every modified Nix path to Natu. + +Finish when both commands succeed and the Nix change follows the loaded rules. +If a command fails, report the failure. -- 2.47.3