Skip to content

Commit

Permalink
Add support for Odin's formatter (#9537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chickenkeeper authored Feb 12, 2024
1 parent c111e28 commit 661e123
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 661e123

Please sign in to comment.