Replies: 2 comments 3 replies
-
If you type |
Beta Was this translation helpful? Give feedback.
3 replies
-
I ended up with this: return {
"stevearc/conform.nvim",
keys = {
{
"<leader>p",
function() require("conform").format({ async = true, lsp_format = "fallback" }) end,
},
},
opts = {
formatters_by_ft = {
-- formatters....
},
format_on_save = {
timeout_ms = 500,
lsp_format = "fallback",
},
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Should you use the same options in
.format
in the keymap and the theformat_on_save
?This is my current conform setup
I know youre supposed to use the
async = true
in the keymap, but should you also use that informat_on_ save
, and should you use thetimeout_ms
andlsp_format
in the keymap.Sorry for all the discussions btw (hope this is the last)
POSTED IN LAZY BECAUSE CONFORM DOESN'T HAVE DISCUSSIONS
Beta Was this translation helpful? Give feedback.
All reactions