@@ -150,7 +150,7 @@ wk.add({
{
"<leader>fm",
function()
- require("conform").format()
+ require("conform").format({ async = true, lsp_fallback = true })
end,
desc = "format files",
},
@@ -26,8 +26,15 @@ return {
"lsp_format",
stop_after_first = "fallback", -- Use fallback behavior
+ r = { "styler" },
+ },
+ formatters = {
+ styler = {
+ command = "R",
+ args = { "--slave", "-e", 'styler::style_text(readLines("stdin"))' },
+ stdin = true,
})
}
-