fix(conform): missed how to declare the raw callback function
This commit is contained in:
parent
7a388c77fa
commit
f78d1ebe16
1 changed files with 11 additions and 9 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue