Skip to content

Commit 402943a

Browse files
committed
feat: nix flake dev environment
Added nix flake dev shell for dev environment configuration. Added stylua to the dev environment.
1 parent 458da8e commit 402943a

File tree

4 files changed

+86
-0
lines changed

4 files changed

+86
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/.luarc.json
2+
.direnv

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
description = "leetcode.nvim dev environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
with flake-utils.lib;
11+
eachDefaultSystem (system:
12+
let
13+
pkgs = import nixpkgs {
14+
inherit system;
15+
};
16+
in
17+
{
18+
devShells.default = pkgs.mkShell {
19+
buildInputs = with pkgs;[ stylua ];
20+
};
21+
}
22+
);
23+
}

0 commit comments

Comments
 (0)