Closed ahmedelgabri closed 3 years ago
Your second example is missing one set of {}
require "format".setup {
typescript = {
{
cmd = {
function(file)
return string.format("prettier --print-width %s -w %s", vim.bo.textwidth, file)
end
}
}
}
}
It's a bit confusing. I'm not super happy with the structure. :thinking:
Thanks, it might not be perfect but what's more important I think is that it shouldn't error silently because it's very hard to debug.
it shouldn't error silently
yea I agree. I should write some validation logic to raise errors with invalid config.
This is the config I'm testing & I have
g:format_debug=v:true
This works fine
This doesn't run