mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
remove unused nix code
This commit is contained in:
parent
8922491578
commit
9a955d86a0
7 changed files with 196 additions and 387 deletions
|
|
@ -1,12 +1,11 @@
|
|||
# This overlay, when applied to nixpkgs, adds the final neovim derivation to nixpkgs.
|
||||
{ inputs }:
|
||||
final: prev:
|
||||
with final.pkgs.lib;
|
||||
let
|
||||
mkNeovim = prev.callPackage ./mkNeovim.nix { pkgs-wrapNeovim = prev; };
|
||||
mkNeovim = prev.callPackage ./mkNeovim.nix { pkgs = prev; };
|
||||
dart-nvim = inputs.dart.packages.x86_64-linux.default;
|
||||
|
||||
plugins = with final.vimPlugins; [
|
||||
plugins = with prev.vimPlugins; [
|
||||
blink-cmp
|
||||
blink-ripgrep-nvim
|
||||
conform-nvim
|
||||
|
|
@ -23,12 +22,13 @@ let
|
|||
snacks-nvim
|
||||
];
|
||||
|
||||
basePackages = with final; [
|
||||
basePackages = with prev; [
|
||||
sqlite
|
||||
ripgrep
|
||||
fd
|
||||
];
|
||||
# Extra packages that should be included on nixos but don't need to be bundled
|
||||
extraPackages = with final; [
|
||||
extraPackages = with prev; [
|
||||
# linters
|
||||
yamllint
|
||||
jq
|
||||
|
|
@ -47,25 +47,21 @@ in
|
|||
{
|
||||
nvim-pkg = mkNeovim {
|
||||
inherit plugins;
|
||||
extraPackages = basePackages ++ extraPackages;
|
||||
packages = basePackages ++ extraPackages;
|
||||
};
|
||||
|
||||
nvim-min-pkg = mkNeovim {
|
||||
inherit plugins;
|
||||
extraPackages = basePackages;
|
||||
packages = basePackages;
|
||||
};
|
||||
|
||||
# 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 {
|
||||
inherit plugins;
|
||||
extraPackages = basePackages ++ extraPackages;
|
||||
appName = "nvim-dev";
|
||||
packages = basePackages ++ extraPackages;
|
||||
name = "nvim-dev";
|
||||
wrapRc = false;
|
||||
};
|
||||
|
||||
# This can be symlinked in the devShell's shellHook
|
||||
nvim-luarc-json = final.mk-luarc-json {
|
||||
inherit plugins;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue