diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | packages.yaml | 16 | ||||
| -rwxr-xr-x | scripts/build | 9 | 
3 files changed, 19 insertions, 8 deletions
| @@ -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) diff --git a/packages.yaml b/packages.yaml index 8fa39a1a..657d2924 100644 --- a/packages.yaml +++ b/packages.yaml @@ -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 diff --git a/scripts/build b/scripts/build index a90f3e94..f1e1a596 100755 --- a/scripts/build +++ b/scripts/build @@ -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 + "/" : ""}" | 
