mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-09 16:39:51 +01:00
Compare commits
11 commits
54732875b5
...
38c9d9ca14
Author | SHA1 | Date | |
---|---|---|---|
|
38c9d9ca14 | ||
|
3c3b08ff77 | ||
|
dd567ccb7e | ||
|
8280ac0feb | ||
|
1e94b7920d | ||
|
d0f942d12c | ||
|
498d3d9370 | ||
|
4078288bf8 | ||
|
0bf8b4fce5 | ||
|
9f93f9f487 | ||
|
e11c8aa7a0 |
5 changed files with 19 additions and 12 deletions
|
@ -1729,11 +1729,11 @@
|
|||
"plugin-run-nvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1735501787,
|
||||
"narHash": "sha256-CFOyOARCLQiMOhFPeqz8n2ULyaaRxRZrOk0FCibjuIM=",
|
||||
"lastModified": 1735130195,
|
||||
"narHash": "sha256-OaOSYyXSNCl9kJJVKhy0L4M06CQFc0NtZ8+AIgKBPik=",
|
||||
"owner": "diniamo",
|
||||
"repo": "run.nvim",
|
||||
"rev": "9015c9cece816ccf10a185b420f6e345fd990802",
|
||||
"rev": "5888f31c5faf4776e598c0665470f5445510c59e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -31,7 +31,10 @@
|
|||
};
|
||||
|
||||
homeManagerModules = {
|
||||
nvf = import ./flake/modules/home-manager.nix {inherit lib self;};
|
||||
nvf = import ./flake/modules/home-manager.nix {
|
||||
inherit lib inputs;
|
||||
inherit (self) packages;
|
||||
};
|
||||
default = self.homeManagerModules.nvf;
|
||||
neovim-flake =
|
||||
lib.warn ''
|
||||
|
@ -42,7 +45,10 @@
|
|||
};
|
||||
|
||||
nixosModules = {
|
||||
nvf = import ./flake/modules/nixos.nix {inherit lib self;};
|
||||
nvf = import ./flake/modules/nixos.nix {
|
||||
inherit lib inputs;
|
||||
inherit (self) packages;
|
||||
};
|
||||
default = self.nixosModules.nvf;
|
||||
neovim-flake =
|
||||
lib.warn ''
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Home Manager module
|
||||
{
|
||||
self,
|
||||
packages,
|
||||
lib,
|
||||
inputs,
|
||||
}: {
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (self) packages inputs;
|
||||
inherit (lib) maintainers;
|
||||
inherit (lib.modules) mkIf mkAliasOptionModule;
|
||||
inherit (lib.lists) optional;
|
||||
|
@ -84,7 +84,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
|
||||
programs.nvf.finalPackage = config.programs.nvf.settings.vim.build.finalPackage;
|
||||
|
||||
home = {
|
||||
sessionVariables = mkIf cfg.defaultEditor {EDITOR = "nvim";};
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# NixOS module
|
||||
{
|
||||
self,
|
||||
packages,
|
||||
lib,
|
||||
inputs,
|
||||
}: {
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (self) inputs packages;
|
||||
inherit (lib) maintainers;
|
||||
inherit (lib.modules) mkIf mkOverride mkAliasOptionModule;
|
||||
inherit (lib.lists) optional;
|
||||
|
@ -84,7 +84,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
|
||||
programs.nvf.finalPackage = config.programs.nvf.settings.vim.build.finalPackage;
|
||||
|
||||
environment = {
|
||||
variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{lib}: let
|
||||
inherit (lib.options) mergeEqualOption;
|
||||
inherit (lib.strings) isString stringLength match;
|
||||
inherit (lib.strings) isString;
|
||||
inherit (lib.types) listOf mkOptionType;
|
||||
inherit (builtins) stringLength match;
|
||||
in {
|
||||
mergelessListOf = elemType: let
|
||||
super = listOf elemType;
|
||||
|
|
Loading…
Reference in a new issue