From 661e12315279ac9032632e51bf32d4e36025f5af Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 12 Feb 2024 16:49:04 +0000 Subject: Add support for Odin's formatter (#9537) --- languages.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'languages.toml') diff --git a/languages.toml b/languages.toml index 2cf1750b..e0f3961e 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" -- cgit v1.2.3-70-g09d2