From 27bc492e19830d934eb2f1b4028397087a9676e8 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 8 Apr 2025 19:00:05 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-08 19:00:05 --- .config/helix/languages.toml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index e2d9f976..b0c4ef99 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -7,6 +7,10 @@ typeCheckingMode = "standard" inlayHints.genericTypes = true +# [language-server.yaml-language-server.config.yaml] +# format = {enable = true} +# validation = true + [language-server.harper-ls] command = "harper-ls" args = ["--stdio"] @@ -273,12 +277,22 @@ command = "just-lsp" [[language]] name = "just" scope = "source.just" -file-types = ["just", { glob = "justfile" }, { glob = "Justfile" }, { glob = ".justfile" }, { glob = ".Justfile" }] +file-types = [ + "just", + { glob = "justfile" }, + { glob = "Justfile" }, + { glob = ".justfile" }, + { glob = ".Justfile" }, +] injection-regex = "just" comment-token = "#" indent = { tab-width = 4, unit = " " } auto-format = true -formatter = { command = "fish", args=["-c", "justfmt"] } +formatter = { command = "fish", args = ["-c", "justfmt"] } # formatter = { command = "just", args = ["--dump"] } # Please see: https://github.com/helix-editor/helix/issues/9703 language-servers = ["just-lsp", "scls"] + +[[language]] +name = "yaml" +formatter = { command = "yamlfmt", args = ['-'] }