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
|
@ -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";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue