diff options
Diffstat (limited to 'extras/ngdoc.vim')
-rw-r--r-- | extras/ngdoc.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extras/ngdoc.vim b/extras/ngdoc.vim index 6e38f905..9ef79925 100644 --- a/extras/ngdoc.vim +++ b/extras/ngdoc.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'extras/ngdoc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" }) +if len(files) > 0 + exec 'source ' . files[0] + finish +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 syntax match jsDocTags contained /@\(link\|method[oO]f\|ngdoc\|ng[iI]nject\|restrict\)/ nextgroup=jsDocParam skipwhite |