Skip to content

Commit 3bd277a

Browse files
committed
helix: tweak language servers
1 parent e1ab169 commit 3bd277a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

users/profiles/helix.nix

+14-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,20 @@ in {
5757
};
5858
};
5959
languages = {
60-
language-server.copilot = {
61-
command = "${copilot}/bin/copilot";
62-
args = ["--stdio"];
60+
language-server = {
61+
copilot = {
62+
command = "${copilot}/bin/copilot";
63+
args = ["--stdio"];
64+
};
65+
yaml-language-server = {
66+
config.yaml.format.enable = true;
67+
config.yaml.validation = true;
68+
config.yaml.schemas = {
69+
"https://json.schemastore.org/github-workflow.json" = ".github/{actions,workflows}/*.{yml,yaml}";
70+
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-tasks.json" = "roles/{tasks,handlers}/*.{yml,yaml}";
71+
kubernetes = "kubernetes/*.{yml,yaml}";
72+
};
73+
};
6374
};
6475
language = [
6576
{

0 commit comments

Comments
 (0)