updated how odin does formatting

This commit was merged in pull request #5.
This commit is contained in:
2026-07-07 15:17:33 -06:00
parent b95074d089
commit 41c41862a7
+8 -1
View File
@@ -16,7 +16,7 @@ return {
"mason-org/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "ols", "odinfmt" })
vim.list_extend(opts.ensure_installed, { "ols" })
end,
},
@@ -36,6 +36,13 @@ return {
{
"stevearc/conform.nvim",
opts = {
formatters = {
odinfmt = {
command = "odinfmt",
args = { "-stdin" },
stdin = true,
},
},
formatters_by_ft = {
odin = { "odinfmt" },
},