summaryrefslogtreecommitdiffstats
path: root/ftplugin/swift.vim
blob: 798a6b19c279f3c66b4ce4abfad066db138f451b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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/swift.vim', 1, 1), Filter)
if len(files) > 0
  exec 'source ' . files[0]
  finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1

setlocal commentstring=//\ %s
" @-@ adds the literal @ to iskeyword for @IBAction and similar
setlocal iskeyword+=@-@,#
setlocal completefunc=syntaxcomplete#Complete

endif