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 = ['-'] }