mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 21:13:50 -05:00
21 lines
707 B
VimL
21 lines
707 B
VimL
let files = filter(globpath(&rtp, 'ftplugin/swiftgyb.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, 'swiftgyb') == -1
|
|
|
|
" This source file is part of the Swift.org open source project
|
|
"
|
|
" Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
|
" Licensed under Apache License v2.0 with Runtime Library Exception
|
|
"
|
|
" See https://swift.org/LICENSE.txt for license information
|
|
" See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
"
|
|
" Vim maintainer: Emir SARI <bitigchi@me.com>
|
|
|
|
runtime! ftplugin/swift.vim
|
|
|
|
endif
|