d927656 changed the dartfmt_executable flag from a string to a list, but didn't change the use inside IsAvailable(), leading to:
Failed to evaluate whether formatter dartfmt is available: Vim(return):E730: Using a List as a String
The change uses the ResolveFlagToArray() helper in both IsAvailable() and FormatRange() (which incidentally also allows defining the flag using a Function), and updates the documentation for all flags using ResolveFlagToArray() to use the same phrasing.
I'm not sure why the neovim tests are failing, but it doesn't seem to be due to this change. Unfortunately that looks like that failure also aborts the Vim tests, but those do pass locally.
d927656 changed the
dartfmt_executable
flag from a string to a list, but didn't change the use inside IsAvailable(), leading to:The change uses the
ResolveFlagToArray()
helper in bothIsAvailable()
andFormatRange()
(which incidentally also allows defining the flag using a Function), and updates the documentation for all flags usingResolveFlagToArray()
to use the same phrasing.Fixes #190.