summaryrefslogtreecommitdiffstats
path: root/syntax/lilypond.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/lilypond.vim')
-rw-r--r--syntax/lilypond.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/lilypond.vim b/syntax/lilypond.vim
index 04a0f0e6..b0792abf 100644
--- a/syntax/lilypond.vim
+++ b/syntax/lilypond.vim
@@ -1,11 +1,6 @@
-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, 'syntax/lilypond.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('lilypond', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1
" LilyPond syntax file
" Language: LilyPond
@@ -94,5 +89,3 @@ if version >= 508 || !exists("did_lily_syn_inits")
endif
let b:current_syntax = "lilypond"
-
-endif