From fe8859790357596b96db3dd4287dbe2d6d4fbf2e Mon Sep 17 00:00:00 2001 From: Sumi-Sumi Date: Thu, 27 Jul 2023 03:34:10 +0900 Subject: [PATCH] feat(nixos/neovim): enabled `nix-ld`, your need install `nix-ld` without using NixOS. --- nixos/neovim/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nixos/neovim/default.nix b/nixos/neovim/default.nix index 4e60a2a98f..a70d5461be 100644 --- a/nixos/neovim/default.nix +++ b/nixos/neovim/default.nix @@ -167,7 +167,7 @@ in PKG_CONFIG_PATH = makePkgConfigPath pkg-config-pkgs; CPATH = makeIncludePath include-pkgs; LIBRARY_PATH = makeLibraryPath lib-pkgs; - }; # "*".sessionVariables.DOTNET = mkAfter "${pkgs.dotnet-sdk}", if you override `DOTNET_ROOT`. + }; in mkIf cfg.enable { @@ -189,6 +189,19 @@ in programs.java.enable = cfg.withJava; programs.dotnet.enable = cfg.withDotNET; + programs.nix-ld = + if attrByPath [ "nix-ld" "enable" ] false config.programs then { + enable = true; + } else if attrByPath [ "nix-ld" "dev" "enable" ] false config.programs then { + dev = { + enable = true; + }; + } else + throw '' + You must install `nix-ld` as NixOSModule. + Please see https://github.com/Mic92/nix-ld/tree/main#installation. + ''; + programs.neovim = { enable = true; # Replace from vi&vim to neovim viAlias = true;