mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
23 lines
778 B
VimL
23 lines
778 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, 'ftplugin/swiftgyb.vim', 1, 1), Filter)
|
|
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
|