mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Mention filetypes in the readme
This commit is contained in:
@@ -529,6 +529,13 @@ def extract(packages)
|
||||
else
|
||||
output << "- [#{package["name"]}](https://github.com/#{repo})"
|
||||
end
|
||||
|
||||
if package["filetypes"].size > 1
|
||||
output[-1] << "(#{package["filetypes"].map { |f| f["name"] }.join(", ")[0..-2]} and #{package["filetypes"].last["name"]} filetypes)"
|
||||
elsif package["filetypes"].size > 0
|
||||
output[-1] << "(#{package["filetypes"].first["name"]} filetype)"
|
||||
end
|
||||
|
||||
progress
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user