Skip to content

Commit

Permalink
terminal/editors/neovim: pass nixd options to nvim package
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 12, 2024
1 parent 37eab35 commit 8ab3fd4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion modules/home/programs/terminal/editors/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,19 @@ in
EDITOR = mkIf cfg.default "nvim";
};
packages = [
khanelivim.packages.${system}.default
(khanelivim.packages.${system}.default.extend {
plugins.lsp.servers.nixd.settings =
let
flake = ''(builtins.getFlake "${inputs.self}")'';
in
{
options = rec {
nix-darwin.expr = ''${flake}.darwinConfigurations.khanelimac.options'';
nixos.expr = ''${flake}.nixosConfigurations.khanelinix.options'';
home-manager.expr = ''${nixos.expr}.home-manager.users.type.getSubOptions [ ]'';
};
};
})
pkgs.nvrh
];
};
Expand Down

0 comments on commit 8ab3fd4

Please sign in to comment.