File tree Expand file tree Collapse file tree 1 file changed +24
-19
lines changed Expand file tree Collapse file tree 1 file changed +24
-19
lines changed Original file line number Diff line number Diff line change 66
66
] ;
67
67
} ;
68
68
69
- luarc = pkgs . mk-luarc {
70
- nvim = pkgs . neovim-nightly ;
71
- plugins = with pkgs . luajitPackages ; [
72
- inputs . rocks-nvim-flake . packages . ${ pkgs . system } . rocks-nvim
73
- nvim-nio
74
- ] ;
75
- disabled-diagnostics = [
76
- # caused by a nio luaCATS bug
77
- "redundant-return-value"
78
- ] ;
79
- } ;
69
+ mk-luarc = nvim :
70
+ pkgs . mk-luarc {
71
+ nvim = pkgs . neovim-nightly ;
72
+ plugins = with pkgs . luajitPackages ; [
73
+ inputs . rocks-nvim-flake . packages . ${ pkgs . system } . rocks-nvim
74
+ nvim-nio
75
+ ] ;
76
+ } ;
80
77
81
- type-check-nightly = pre-commit-hooks . lib . ${ system } . run {
82
- src = self ;
83
- hooks = {
84
- lua-ls = {
85
- enable = true ;
86
- settings . configuration = luarc ;
78
+ luarc-nightly = mk-luarc pkgs . neovim-nightly ;
79
+ luarc-stable = mk-luarc pkgs . neovim-unwrapped ;
80
+
81
+ mk-typecheck = luarc :
82
+ pre-commit-hooks . lib . ${ system } . run {
83
+ src = self ;
84
+ hooks = {
85
+ lua-ls = {
86
+ enable = true ;
87
+ settings . configuration = luarc ;
88
+ } ;
87
89
} ;
88
90
} ;
89
- } ;
91
+
92
+ type-check-nightly = mk-typecheck luarc-nightly ;
93
+ type-check-stable = mk-typecheck luarc-stable ;
90
94
91
95
pre-commit-check = pre-commit-hooks . lib . ${ system } . run {
92
96
src = self ;
102
106
name = "rocks-git.nvim devShell" ;
103
107
shellHook = ''
104
108
${ pre-commit-check . shellHook }
105
- ln -fs ${ pkgs . luarc-to-json luarc } .luarc.json
109
+ ln -fs ${ pkgs . luarc-to-json luarc-nightly } .luarc.json
106
110
'' ;
107
111
buildInputs =
108
112
self . checks . ${ system } . pre-commit-check . enabledPackages
133
137
inherit
134
138
pre-commit-check
135
139
type-check-nightly
140
+ type-check-stable
136
141
;
137
142
inherit ( pkgs ) integration-nightly ;
138
143
} ;
You can’t perform that action at this time.
0 commit comments