mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-08 09:09:49 +01:00
Compare commits
13 commits
38c9d9ca14
...
54732875b5
Author | SHA1 | Date | |
---|---|---|---|
|
54732875b5 | ||
|
d14c5e57db | ||
|
6daec44f40 | ||
|
835b775fa9 | ||
|
fb96ccb85b | ||
|
27f3430296 | ||
|
f8780947b7 | ||
|
e9cc77dff7 | ||
|
dc5551b050 | ||
|
2217565730 | ||
|
4e867c5425 | ||
ba3173d363 | |||
|
c3b51df4a6 |
5 changed files with 12 additions and 19 deletions
|
@ -1729,11 +1729,11 @@
|
|||
"plugin-run-nvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1735130195,
|
||||
"narHash": "sha256-OaOSYyXSNCl9kJJVKhy0L4M06CQFc0NtZ8+AIgKBPik=",
|
||||
"lastModified": 1735501787,
|
||||
"narHash": "sha256-CFOyOARCLQiMOhFPeqz8n2ULyaaRxRZrOk0FCibjuIM=",
|
||||
"owner": "diniamo",
|
||||
"repo": "run.nvim",
|
||||
"rev": "5888f31c5faf4776e598c0665470f5445510c59e",
|
||||
"rev": "9015c9cece816ccf10a185b420f6e345fd990802",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -31,10 +31,7 @@
|
|||
};
|
||||
|
||||
homeManagerModules = {
|
||||
nvf = import ./flake/modules/home-manager.nix {
|
||||
inherit lib inputs;
|
||||
inherit (self) packages;
|
||||
};
|
||||
nvf = import ./flake/modules/home-manager.nix {inherit lib self;};
|
||||
default = self.homeManagerModules.nvf;
|
||||
neovim-flake =
|
||||
lib.warn ''
|
||||
|
@ -45,10 +42,7 @@
|
|||
};
|
||||
|
||||
nixosModules = {
|
||||
nvf = import ./flake/modules/nixos.nix {
|
||||
inherit lib inputs;
|
||||
inherit (self) packages;
|
||||
};
|
||||
nvf = import ./flake/modules/nixos.nix {inherit lib self;};
|
||||
default = self.nixosModules.nvf;
|
||||
neovim-flake =
|
||||
lib.warn ''
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Home Manager module
|
||||
{
|
||||
packages,
|
||||
self,
|
||||
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 = config.programs.nvf.settings.vim.build.finalPackage;
|
||||
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
|
||||
|
||||
home = {
|
||||
sessionVariables = mkIf cfg.defaultEditor {EDITOR = "nvim";};
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# NixOS module
|
||||
{
|
||||
packages,
|
||||
self,
|
||||
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 = config.programs.nvf.settings.vim.build.finalPackage;
|
||||
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
|
||||
|
||||
environment = {
|
||||
variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{lib}: let
|
||||
inherit (lib.options) mergeEqualOption;
|
||||
inherit (lib.strings) isString;
|
||||
inherit (lib.strings) isString stringLength match;
|
||||
inherit (lib.types) listOf mkOptionType;
|
||||
inherit (builtins) stringLength match;
|
||||
in {
|
||||
mergelessListOf = elemType: let
|
||||
super = listOf elemType;
|
||||
|
|
Loading…
Reference in a new issue