mirror of https://github.com/helix-editor/helix
Add support for Odin's formatter (#9537)
parent
c111e28a6f
commit
661e123152
|
@ -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…
Reference in New Issue