Skip to content

Commit

Permalink
feat(nixos/neovim): enabled nix-ld, your need install nix-ld without
Browse files Browse the repository at this point in the history
using NixOS.
  • Loading branch information
misumisumi committed Jul 26, 2023
1 parent 398efe2 commit fe88597
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion nixos/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down

0 comments on commit fe88597

Please sign in to comment.