aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorChris2024-02-12 16:49:04 +0000
committerGitHub2024-02-12 16:49:04 +0000
commit661e12315279ac9032632e51bf32d4e36025f5af (patch)
tree711542288e9dd91e703aef621860bef1d8ec8a04 /languages.toml
parentc111e28a6f4ab81bf1f5b60173f6e7bf3e63aa15 (diff)
Add support for Odin's formatter (#9537)
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 2cf1750b..e0f3961e 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1923,13 +1923,14 @@ source = { git = "https://github.com/fvacek/tree-sitter-cpon", rev = "0d01fcdae5
[[language]]
name = "odin"
-auto-format = false
+auto-format = true
scope = "source.odin"
file-types = ["odin"]
roots = ["ols.json"]
language-servers = [ "ols" ]
comment-token = "//"
indent = { tab-width = 4, unit = "\t" }
+formatter = { command = "odinfmt", args = [ "-stdin", "true" ] }
[[grammar]]
name = "odin"