Skip to content

Commit 546b4b0

Browse files
GaetanLepageMattSturgeon
authored andcommitted
plugins/jsonls: add settings option
1 parent f3e2a06 commit 546b4b0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

plugins/lsp/language-servers/default.nix

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ let
245245
"${cfg.package}/bin/vscode-json-language-server"
246246
"--stdio"
247247
];
248+
settings = cfg: { json = cfg; };
248249
}
249250
{
250251
name = "julials";
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
example = {
3+
plugins.lsp = {
4+
enable = true;
5+
6+
servers.jsonls = {
7+
enable = true;
8+
9+
settings = {
10+
format = {
11+
enable = true;
12+
};
13+
validate = {
14+
enable = true;
15+
};
16+
};
17+
};
18+
};
19+
};
20+
}

0 commit comments

Comments
 (0)