diff --git a/config/plugins/neorg.nix b/config/plugins/neorg.nix index e74bfe4..519e8d5 100644 --- a/config/plugins/neorg.nix +++ b/config/plugins/neorg.nix @@ -1,11 +1,12 @@ # vim: ts=4:sts=0:sw=0:noet { -helpers +pkgs-stable , ... }: { plugins = { neorg = { enable = true; + package = pkgs-stable.vimPlugins.neorg; modules = { "core.defaults" = {}; # -- Loads default behaviour "core.summary" = {}; @@ -32,6 +33,7 @@ helpers }; "core.keybinds" = { config = { + default_keybinds = true; hook.__raw = '' function(keybinds) keybinds.unmap("norg", "i", "") diff --git a/flake.lock b/flake.lock index 94666a2..fec677f 100644 --- a/flake.lock +++ b/flake.lock @@ -205,6 +205,22 @@ "type": "indirect" } }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1712437997, + "narHash": "sha256-g0whLLwRvgO2FsyhY8fNk+TWenS3jg5UdlWL4uqgFeo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e38d7cb66ea4f7a0eb6681920615dfcc30fc2920", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1711333969, @@ -277,6 +293,7 @@ "inputs": { "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", + "nixpkgs-stable": "nixpkgs-stable", "nixvim": "nixvim" } }, diff --git a/flake.nix b/flake.nix index d5ea171..3efea78 100644 --- a/flake.nix +++ b/flake.nix @@ -3,12 +3,14 @@ inputs = { nixvim.url = "github:nix-community/nixvim"; + nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, + nixpkgs-stable, nixvim, flake-utils, ... @@ -18,6 +20,7 @@ flake-utils.lib.eachDefaultSystem (system: let nixvimLib = nixvim.lib.${system}; pkgs = import nixpkgs {inherit system;}; + pkgs-stable = import nixpkgs-stable {inherit system;}; nixvim' = nixvim.legacyPackages.${system}; nvim = nixvim'.makeNixvimWithModule { inherit pkgs; @@ -25,6 +28,7 @@ # You can use `extraSpecialArgs` to pass additional arguments to your module files extraSpecialArgs = { inherit self; + inherit pkgs-stable; }; }; in {