From 8ab3fd46709196ec782f946e72510c7df77b5bd0 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 12 Dec 2024 08:55:51 -0600 Subject: [PATCH] terminal/editors/neovim: pass nixd options to nvim package --- .../programs/terminal/editors/neovim/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/home/programs/terminal/editors/neovim/default.nix b/modules/home/programs/terminal/editors/neovim/default.nix index 49d85d1d..5b0ac742 100644 --- a/modules/home/programs/terminal/editors/neovim/default.nix +++ b/modules/home/programs/terminal/editors/neovim/default.nix @@ -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 ]; };