mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Migrate only after dirs
This commit is contained in:
@@ -59,7 +59,7 @@ If you need full functionality of any plugin, please use it directly with your p
|
||||
- [cjsx](https://github.com/mtscout6/vim-cjsx) (syntax, ftplugin)
|
||||
- [clojure](https://github.com/guns/vim-clojure-static) (syntax, indent, autoload, ftplugin)
|
||||
- [cmake](https://github.com/pboettch/vim-cmake-syntax) (syntax, indent)
|
||||
- [coffee-script](https://github.com/kchmck/vim-coffee-script) (syntax, compiler, indent, autoload, ftplugin)
|
||||
- [coffee-script](https://github.com/kchmck/vim-coffee-script) (syntax, indent, compiler, autoload, ftplugin)
|
||||
- [cql](https://github.com/elubow/cql-vim) (syntax)
|
||||
- [cryptol](https://github.com/victoredwardocallaghan/cryptol.vim) (syntax, compiler, ftplugin)
|
||||
- [crystal](https://github.com/rhysd/vim-crystal) (syntax, indent, autoload, ftplugin)
|
||||
|
||||
@@ -81,7 +81,9 @@ filetypes:
|
||||
---
|
||||
name: coffee-script
|
||||
remote: kchmck/vim-coffee-script
|
||||
dirs: :noafter
|
||||
ignored_dirs:
|
||||
# Don't slow down html and haml files
|
||||
- after
|
||||
filetypes:
|
||||
- name: coffee
|
||||
linguist: CoffeeScript
|
||||
@@ -300,7 +302,9 @@ filetypes:
|
||||
---
|
||||
name: glsl
|
||||
remote: tikhomirov/vim-glsl
|
||||
dirs: :noafter
|
||||
ignored_dirs:
|
||||
# don't slow down html and haml files
|
||||
- after
|
||||
filetypes:
|
||||
- name: glsl
|
||||
linguist: GLSL
|
||||
@@ -558,7 +562,9 @@ filetypes:
|
||||
---
|
||||
name: less
|
||||
remote: groenewege/vim-less
|
||||
dirs: :noafter
|
||||
ignored_dirs:
|
||||
# We don't want to slow down .html files
|
||||
- after
|
||||
filetypes:
|
||||
- name: less
|
||||
linguist: Less
|
||||
@@ -614,7 +620,9 @@ filetypes:
|
||||
---
|
||||
name: markdown
|
||||
remote: plasticboy/vim-markdown
|
||||
dirs: :noafter
|
||||
ignored_dirs:
|
||||
# Disable slow folding config
|
||||
- after
|
||||
filetypes:
|
||||
- name: markdown
|
||||
linguist: Markdown
|
||||
|
||||
@@ -5,6 +5,7 @@ require 'open3'
|
||||
require 'yaml'
|
||||
require 'fileutils'
|
||||
require 'set'
|
||||
require 'json'
|
||||
|
||||
Dir.chdir(File.dirname(__dir__))
|
||||
|
||||
@@ -15,8 +16,7 @@ BASE_URL = 'https://raw.githubusercontent.com/github/linguist/master'
|
||||
DIRS = {
|
||||
default: %w(syntax indent compiler autoload ftplugin ctags after/syntax after/indent after/ftplugin),
|
||||
all: %w(syntax indent compiler autoload ftplugin after extras ctags),
|
||||
syntax: %w(syntax indent after/syntax after/indent),
|
||||
noafter: %w(syntax compiler indent autoload ftplugin)
|
||||
syntax: %w(syntax indent after/syntax after/indent)
|
||||
}
|
||||
|
||||
def parallel(*procs)
|
||||
@@ -156,7 +156,10 @@ def extract
|
||||
dir = "tmp/" + repo.split('/')[1]
|
||||
subdirs = []
|
||||
dirs = DIRS.fetch(package.fetch("dirs", "default").to_sym)
|
||||
dirs -= package.fetch("ignored_dirs", [])
|
||||
ignored_dirs = package.fetch("ignored_dirs", [])
|
||||
if ignored_dirs.size > 0
|
||||
dirs = dirs.reject { |d| ignored_dirs.any? { |id| d.start_with?(id) } }
|
||||
end
|
||||
dirs |= package.fetch("extra_dirs", [])
|
||||
for subdir in dirs
|
||||
subtree = "#{dir}/#{path ? path + "/" : ""}"
|
||||
|
||||
Reference in New Issue
Block a user