summaryrefslogtreecommitdiffstats
path: root/ftplugin/swift.vim
blob: d1e1de898654da4a5262b177fa89fdc34b3ebd78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
let files = filter(globpath(&rtp, 'ftplugin/swift.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, 'swift') == -1

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

endif