Add support for Odin's formatter (#9537)

pull/9613/head
Chris 9 months ago committed by GitHub
parent c111e28a6f
commit 661e123152
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1923,13 +1923,14 @@ source = { git = "https://github.com/fvacek/tree-sitter-cpon", rev = "0d01fcdae5
[[language]] [[language]]
name = "odin" name = "odin"
auto-format = false auto-format = true
scope = "source.odin" scope = "source.odin"
file-types = ["odin"] file-types = ["odin"]
roots = ["ols.json"] roots = ["ols.json"]
language-servers = [ "ols" ] language-servers = [ "ols" ]
comment-token = "//" comment-token = "//"
indent = { tab-width = 4, unit = "\t" } indent = { tab-width = 4, unit = "\t" }
formatter = { command = "odinfmt", args = [ "-stdin", "true" ] }
[[grammar]] [[grammar]]
name = "odin" name = "odin"

Loading…
Cancel
Save