diff --git a/home/private_dot_config/helix/languages.toml.tmpl b/home/private_dot_config/helix/languages.toml.tmpl index 77898c2..1682053 100644 --- a/home/private_dot_config/helix/languages.toml.tmpl +++ b/home/private_dot_config/helix/languages.toml.tmpl @@ -27,3 +27,30 @@ environment = { "PYENV_VERSION" = "pyright" } name = "python" language-servers = ["pyright"] {{- end }} + +[language-server.roc-ls] +command = "roc_language_server" + +[[language]] +name = "roc" +scope = "source.roc" +injection-regex = "roc" +file-types = ["roc"] +shebangs = ["roc"] +roots = [] +comment-token = "#" +language-servers = ["roc-ls"] +indent = { tab-width = 2, unit = " " } +auto-format = true +formatter = { command = "roc", args =[ "format", "--stdin", "--stdout"]} + +[language.auto-pairs] +'(' = ')' +'{' = '}' +'[' = ']' +'"' = '"' + +[[grammar]] + +name = "roc" +source = { git = "https://github.com/faldor20/tree-sitter-roc.git", rev = "ef46edd0c03ea30a22f7e92bc68628fb7231dc8a" }