mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 04:53:51 -05:00
26 lines
684 B
VimL
26 lines
684 B
VimL
let s:base = expand("<sfile>:h:h")
|
|
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
|
let files = filter(globpath(&rtp, 'indent/ember-script.vim', 1, 1), Filter)
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
|
|
|
|
" Language: ember-script
|
|
" Maintainer: Yulij Andreevich Lesov <yalesov@gmail.com>>
|
|
" URL: http://github.com/yalesov/vim-ember-script
|
|
" Version: 1.0.4
|
|
" Last Change: 2016 Jul 6
|
|
" License: ISC
|
|
|
|
if exists('b:did_indent')
|
|
finish
|
|
endif
|
|
|
|
runtime! indent/coffee.vim
|
|
unlet! b:did_indent
|
|
let b:did_indent = 1
|
|
|
|
endif
|