We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should define a little filetype check helper to turn formatters' common (and ugly) checks against multiple filetypes like
if &filetype is# 'c' || &filetype is# 'cpp' || \ &filetype is# 'proto' || &filetype is# 'javascript' || \ &filetype is# 'objc' || &filetype is# 'objcpp' || \ &filetype is# 'typescript' || &filetype is# 'arduino'
into a simpler concise function call like
if codefmt#formatterhelpers#FiletypeMatches( \ &filetype, \ ['c', 'cpp', 'proto', 'javascript', 'objc', 'objcpp', 'typescript', 'arduino'])
It could also help ensure they properly support dotted filenames like 'c.doxygen' (see :help 'filetype').
The text was updated successfully, but these errors were encountered:
Update #formatterhelpers#FiletypeMatches to handle dotted ft names (#214
db7631c
) Fixes #212.
dbarnett
Successfully merging a pull request may close this issue.
We should define a little filetype check helper to turn formatters' common (and ugly) checks against multiple filetypes like
into a simpler concise function call like
It could also help ensure they properly support dotted filenames like 'c.doxygen' (see :help 'filetype').
The text was updated successfully, but these errors were encountered: