From ae842a9a1aa2d27058c8bbc9a2177fb9dd533c20 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 12 Feb 2024 16:49:04 +0000 Subject: [PATCH] Add support for Odin's formatter (#9537) --- languages.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 2cf1750be9fff..e0f3961e0871f 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"