fix conform
This commit is contained in:
@ -51,11 +51,9 @@ return {
|
|||||||
end
|
end
|
||||||
require("conform").format({ async = true })
|
require("conform").format({ async = true })
|
||||||
end, { range = true })
|
end, { range = true })
|
||||||
end,
|
|
||||||
-- This will provide type hinting with LuaLS
|
require("conform").setup(
|
||||||
---@module "conform"
|
{
|
||||||
---@type conform.setupOpts
|
|
||||||
opts = {
|
|
||||||
log_level = vim.log.levels.DEBUG,
|
log_level = vim.log.levels.DEBUG,
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
rust = { "rustfmt" },
|
rust = { "rustfmt" },
|
||||||
@ -85,6 +83,7 @@ return {
|
|||||||
prepend_args = { "-l", "100" },
|
prepend_args = { "-l", "100" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
})
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user