fix(conform): missed how to declare the raw callback function

This commit is contained in:
chloe 2025-07-02 20:18:44 +02:00
parent 7a388c77fa
commit f78d1ebe16

View file

@ -23,17 +23,19 @@
autoCmd = [ autoCmd = [
{ {
callback = '' callback = {
__raw = ''
function(args) function(args)
require("conform").format({ bufnr = args.buf }) require("conform").format({ bufnr = args.buf })
end end
''; '';
};
event = [ "BufWritePre" ]; event = [ "BufWritePre" ];
pattern = [ pattern = [
"*" "*"
]; ];
desc = "autoformatting on save"; desc = "Format on save";
} }
]; ];
} }