Skip to content

Commit 51e08f7

Browse files
committed
nixos: nvim development shell improvements
1 parent e97e347 commit 51e08f7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

dev-shell.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{ pkgs }:
2+
let
3+
nvimConfigPath = ./nvim/.config/nvim;
4+
nvimScripts = [
5+
(pkgs.writeShellScriptBin "nv" ''
6+
set -x
7+
nvim -u ${nvimConfigPath}/init.lua
8+
set +x
9+
'')
10+
];
11+
in
212
{
313
default = pkgs.mkShell {
414
buildInputs = with pkgs; [
@@ -19,6 +29,6 @@
1929
};
2030

2131
nvim = pkgs.mkShell {
22-
buildInputs = import ./nixos/common/nvimPackages.nix { inherit pkgs; };
32+
buildInputs = nvimScripts ++ import ./nixos/common/nvimPackages.nix { inherit pkgs; };
2333
};
2434
}

0 commit comments

Comments
 (0)