mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 22:43:49 -05:00
16 lines
542 B
VimL
16 lines
542 B
VimL
let files = filter(globpath(&rtp, 'ftplugin/objc.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, 'objc') == -1
|
|
|
|
" Use C++ style comment strings with commentary.vim
|
|
setl commentstring=//%s
|
|
|
|
" Search for include files inside frameworks (used for gf etc.)
|
|
setl includeexpr=substitute(v:fname,'\\([^/]\\+\\)/\\(.\\+\\)','/System/Library/Frameworks/\\1.framework/Headers/\\2','')
|
|
|
|
|
|
endif
|