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

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