updated how odin does formatting
This commit was merged in pull request #5.
This commit is contained in:
@@ -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" },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user