aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2026-05-14 18:52:19 +0100
committerTrey Bastian <hello@treybastian.com>2026-05-14 18:52:19 +0100
commitc7cf626e0cabe2d2a5a1ac7bc244e5619b59ee59 (patch)
tree8d8b40bec856b695929691a0553126c932e26351 /lua
parent7af686c8fff27d52a1487a8047bc0cea98c9422f (diff)
added odin support
Diffstat (limited to 'lua')
-rw-r--r--lua/config/conform.lua1
-rw-r--r--lua/config/mason.lua6
2 files changed, 7 insertions, 0 deletions
diff --git a/lua/config/conform.lua b/lua/config/conform.lua
index aac5191..a6bb745 100644
--- a/lua/config/conform.lua
+++ b/lua/config/conform.lua
@@ -25,6 +25,7 @@ require("conform").setup({
rust = { "rustfmt", lsp_format = "fallbackk" },
go = { "goimports", "gofmt" },
proto = { "buf", lsp_format = "fallback" },
+ odin = { "odinfmt" },
},
format_on_save = {
timeout_ms = 1001,
diff --git a/lua/config/mason.lua b/lua/config/mason.lua
index a38c578..f7bc6e3 100644
--- a/lua/config/mason.lua
+++ b/lua/config/mason.lua
@@ -94,5 +94,11 @@ require("mason-tool-installer").setup({
return vim.fn.executable("protoc") == 1
end,
},
+ {
+ "ols",
+ condition = function()
+ return vim.fn.executable("odin") == 1
+ end,
+ },
},
})