mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 00:45:17 -06:00
build(flake): enable for all systems
This commit is contained in:
parent
9028ed4893
commit
7e87ede672
5 changed files with 39 additions and 24 deletions
|
|
@ -34,6 +34,7 @@ with lib;
|
|||
# if the appName is something different than "nvim"
|
||||
viAlias ? appName == "nvim", # Add a "vi" binary to the build output as an alias?
|
||||
vimAlias ? appName == "nvim", # Add a "vim" binary to the build output as an alias?
|
||||
wrapRc ? true,
|
||||
}: let
|
||||
# This is the structure of a plugin definition.
|
||||
# Each plugin in the `plugins` argument list can also be defined as this attrset
|
||||
|
|
@ -176,7 +177,7 @@ with lib;
|
|||
+ extraMakeWrapperLuaCArgs
|
||||
+ " "
|
||||
+ extraMakeWrapperLuaArgs;
|
||||
wrapRc = true;
|
||||
wrapRc = wrapRc;
|
||||
});
|
||||
|
||||
isCustomAppName = appName != null && appName != "nvim";
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ with final.pkgs.lib; let
|
|||
eyeliner-nvim
|
||||
friendly-snippets
|
||||
gitsigns-nvim
|
||||
hunk-nvim
|
||||
lazy-nvim
|
||||
luasnip
|
||||
mini-nvim
|
||||
|
|
@ -83,6 +84,17 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
# This is meant to be used within a devshell.
|
||||
# Instead of loading the lua Neovim configuration from
|
||||
# the Nix store, it is loaded from $XDG_CONFIG_HOME/nvim-dev
|
||||
nvim-dev = mkNeovim {
|
||||
plugins = all-plugins;
|
||||
extraPackages = basePackages ++ extraPackages;
|
||||
appName = "nvim-dev";
|
||||
wrapRc = false;
|
||||
};
|
||||
|
||||
# This can be symlinked in the devShell's shellHook
|
||||
nvim-luarc-json = final.mk-luarc-json {
|
||||
plugins = all-plugins;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue