File tree Expand file tree Collapse file tree 5 files changed +266
-0
lines changed
Expand file tree Collapse file tree 5 files changed +266
-0
lines changed Original file line number Diff line number Diff line change 1+ use flake
Original file line number Diff line number Diff line change 11deps
2+ .direnv
Original file line number Diff line number Diff line change 1+ /nix/store/pzl0ng6xixz28g7jalnml2aic07f8pa8-luarc.json
Original file line number Diff line number Diff line change 1+ {
2+ inputs = {
3+ nixpkgs . url = "github:NixOS/nixpkgs" ;
4+ flake-utils . url = "github:numtide/flake-utils" ;
5+ gen-luarc . url = "github:mrcjkb/nix-gen-luarc-json" ;
6+ } ;
7+ outputs =
8+ {
9+ nixpkgs ,
10+ flake-utils ,
11+ gen-luarc ,
12+ ...
13+ } :
14+ flake-utils . lib . eachDefaultSystem (
15+ system :
16+ let
17+ pkgs = import nixpkgs {
18+ inherit system ;
19+ overlays = [
20+ gen-luarc . overlays . default
21+ ] ;
22+ } ;
23+ luarc = pkgs . mk-luarc-json {
24+ plugins = with pkgs . vimPlugins ; [
25+ mini-nvim
26+ ] ;
27+ } ;
28+ in
29+ {
30+ devShells . default = pkgs . mkShell {
31+ packages = with pkgs ; [
32+ lua-language-server
33+ ] ;
34+ shellHook = # bash
35+ ''
36+ ln -fs ${ luarc } .luarc.json
37+ '' ;
38+ } ;
39+ }
40+ ) ;
41+ }
You can’t perform that action at this time.
0 commit comments