diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-12-30 11:26:56 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-12-30 11:26:56 +0100 |
commit | 4855e5ee82a6871b4330ee00626dead1ee874f5b (patch) | |
tree | e1a6eea08eece216a6661086e4e9b43248d39777 | |
parent | bb85059bacd5b415a012f25679111a0e55d3c6d9 (diff) | |
download | vim-polyglot-4855e5ee82a6871b4330ee00626dead1ee874f5b.tar.gz vim-polyglot-4855e5ee82a6871b4330ee00626dead1ee874f5b.zip |
Add vital file for crystal, fixes #259
-rw-r--r-- | autoload/vital/crystal.vital | 10 | ||||
-rwxr-xr-x | build | 2 |
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 @@ -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")" |