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)
|
- [cjsx](https://github.com/mtscout6/vim-cjsx) (syntax, ftplugin)
|
||||||
- [clojure](https://github.com/guns/vim-clojure-static) (syntax, indent, autoload, ftplugin)
|
- [clojure](https://github.com/guns/vim-clojure-static) (syntax, indent, autoload, ftplugin)
|
||||||
- [cmake](https://github.com/pboettch/vim-cmake-syntax) (syntax, indent)
|
- [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)
|
- [cql](https://github.com/elubow/cql-vim) (syntax)
|
||||||
- [cryptol](https://github.com/victoredwardocallaghan/cryptol.vim) (syntax, compiler, ftplugin)
|
- [cryptol](https://github.com/victoredwardocallaghan/cryptol.vim) (syntax, compiler, ftplugin)
|
||||||
- [crystal](https://github.com/rhysd/vim-crystal) (syntax, indent, autoload, ftplugin)
|
- [crystal](https://github.com/rhysd/vim-crystal) (syntax, indent, autoload, ftplugin)
|
||||||
|
|||||||
@@ -81,7 +81,9 @@ filetypes:
|
|||||||
---
|
---
|
||||||
name: coffee-script
|
name: coffee-script
|
||||||
remote: kchmck/vim-coffee-script
|
remote: kchmck/vim-coffee-script
|
||||||
dirs: :noafter
|
ignored_dirs:
|
||||||
|
# Don't slow down html and haml files
|
||||||
|
- after
|
||||||
filetypes:
|
filetypes:
|
||||||
- name: coffee
|
- name: coffee
|
||||||
linguist: CoffeeScript
|
linguist: CoffeeScript
|
||||||
@@ -300,7 +302,9 @@ filetypes:
|
|||||||
---
|
---
|
||||||
name: glsl
|
name: glsl
|
||||||
remote: tikhomirov/vim-glsl
|
remote: tikhomirov/vim-glsl
|
||||||
dirs: :noafter
|
ignored_dirs:
|
||||||
|
# don't slow down html and haml files
|
||||||
|
- after
|
||||||
filetypes:
|
filetypes:
|
||||||
- name: glsl
|
- name: glsl
|
||||||
linguist: GLSL
|
linguist: GLSL
|
||||||
@@ -558,7 +562,9 @@ filetypes:
|
|||||||
---
|
---
|
||||||
name: less
|
name: less
|
||||||
remote: groenewege/vim-less
|
remote: groenewege/vim-less
|
||||||
dirs: :noafter
|
ignored_dirs:
|
||||||
|
# We don't want to slow down .html files
|
||||||
|
- after
|
||||||
filetypes:
|
filetypes:
|
||||||
- name: less
|
- name: less
|
||||||
linguist: Less
|
linguist: Less
|
||||||
@@ -614,7 +620,9 @@ filetypes:
|
|||||||
---
|
---
|
||||||
name: markdown
|
name: markdown
|
||||||
remote: plasticboy/vim-markdown
|
remote: plasticboy/vim-markdown
|
||||||
dirs: :noafter
|
ignored_dirs:
|
||||||
|
# Disable slow folding config
|
||||||
|
- after
|
||||||
filetypes:
|
filetypes:
|
||||||
- name: markdown
|
- name: markdown
|
||||||
linguist: Markdown
|
linguist: Markdown
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ require 'open3'
|
|||||||
require 'yaml'
|
require 'yaml'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'set'
|
require 'set'
|
||||||
|
require 'json'
|
||||||
|
|
||||||
Dir.chdir(File.dirname(__dir__))
|
Dir.chdir(File.dirname(__dir__))
|
||||||
|
|
||||||
@@ -15,8 +16,7 @@ BASE_URL = 'https://raw.githubusercontent.com/github/linguist/master'
|
|||||||
DIRS = {
|
DIRS = {
|
||||||
default: %w(syntax indent compiler autoload ftplugin ctags after/syntax after/indent after/ftplugin),
|
default: %w(syntax indent compiler autoload ftplugin ctags after/syntax after/indent after/ftplugin),
|
||||||
all: %w(syntax indent compiler autoload ftplugin after extras ctags),
|
all: %w(syntax indent compiler autoload ftplugin after extras ctags),
|
||||||
syntax: %w(syntax indent after/syntax after/indent),
|
syntax: %w(syntax indent after/syntax after/indent)
|
||||||
noafter: %w(syntax compiler indent autoload ftplugin)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def parallel(*procs)
|
def parallel(*procs)
|
||||||
@@ -156,7 +156,10 @@ def extract
|
|||||||
dir = "tmp/" + repo.split('/')[1]
|
dir = "tmp/" + repo.split('/')[1]
|
||||||
subdirs = []
|
subdirs = []
|
||||||
dirs = DIRS.fetch(package.fetch("dirs", "default").to_sym)
|
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", [])
|
dirs |= package.fetch("extra_dirs", [])
|
||||||
for subdir in dirs
|
for subdir in dirs
|
||||||
subtree = "#{dir}/#{path ? path + "/" : ""}"
|
subtree = "#{dir}/#{path ? path + "/" : ""}"
|
||||||
|
|||||||
Reference in New Issue
Block a user