Skip to content

Commit

Permalink
Add support for Odin's formatter (helix-editor#9537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chickenkeeper authored and mtoohey31 committed Jun 2, 2024
1 parent 320731e commit 8d838cd
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 8d838cd

Please sign in to comment.