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",
|
"mason-org/mason.nvim",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
opts.ensure_installed = opts.ensure_installed or {}
|
opts.ensure_installed = opts.ensure_installed or {}
|
||||||
vim.list_extend(opts.ensure_installed, { "ols", "odinfmt" })
|
vim.list_extend(opts.ensure_installed, { "ols" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -36,6 +36,13 @@ return {
|
|||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
|
formatters = {
|
||||||
|
odinfmt = {
|
||||||
|
command = "odinfmt",
|
||||||
|
args = { "-stdin" },
|
||||||
|
stdin = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
odin = { "odinfmt" },
|
odin = { "odinfmt" },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user