mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 11:30:06 +02:00
plugins/jsonls: add settings option
This commit is contained in:
parent
f3e2a064a1
commit
546b4b029d
2 changed files with 21 additions and 0 deletions
|
@ -245,6 +245,7 @@ let
|
||||||
"${cfg.package}/bin/vscode-json-language-server"
|
"${cfg.package}/bin/vscode-json-language-server"
|
||||||
"--stdio"
|
"--stdio"
|
||||||
];
|
];
|
||||||
|
settings = cfg: { json = cfg; };
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "julials";
|
name = "julials";
|
||||||
|
|
20
tests/test-sources/plugins/lsp/jsonls.nix
Normal file
20
tests/test-sources/plugins/lsp/jsonls.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
example = {
|
||||||
|
plugins.lsp = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
servers.jsonls = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
format = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
validate = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue