summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-12-30 11:26:56 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-12-30 11:26:56 +0100
commit4855e5ee82a6871b4330ee00626dead1ee874f5b (patch)
treee1a6eea08eece216a6661086e4e9b43248d39777
parentbb85059bacd5b415a012f25679111a0e55d3c6d9 (diff)
downloadvim-polyglot-4855e5ee82a6871b4330ee00626dead1ee874f5b.tar.gz
vim-polyglot-4855e5ee82a6871b4330ee00626dead1ee874f5b.zip
Add vital file for crystal, fixes #259
-rw-r--r--autoload/vital/crystal.vital10
-rwxr-xr-xbuild2
2 files changed, 11 insertions, 1 deletions
diff --git a/autoload/vital/crystal.vital b/autoload/vital/crystal.vital
new file mode 100644
index 00000000..7c1f45ff
--- /dev/null
+++ b/autoload/vital/crystal.vital
@@ -0,0 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
+
+crystal
+a977489
+
+Process
+Web.JSON
+ColorEcho
+
+endif
diff --git a/build b/build
index 774a449f..d991a885 100755
--- a/build
+++ b/build
@@ -80,7 +80,7 @@ extract() {
}
copy_dir() {
- for file in $(find "$1/$2" -name '*.vim'); do
+ for file in $(find "$1/$2" -name '*.vim' -o -name '*.vital'); do
file_path="$(dirname "${file##$1/}")"
mkdir -p "$file_path"
touch "$file_path/$(basename "$file")"