runtime(c): set omnifunc only for Vim, since it is Vim9 Script
related: #17871 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -1,8 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2023 Aug 22
|
" Last Change: 2025 Aug 08
|
||||||
" 2024 Jun 02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
@ -28,7 +27,7 @@ setlocal fo-=t fo+=croql
|
|||||||
setlocal commentstring=/*\ %s\ */ define& include&
|
setlocal commentstring=/*\ %s\ */ define& include&
|
||||||
|
|
||||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||||
if exists('&ofu')
|
if exists('&ofu') && has("vim9script")
|
||||||
setlocal ofu=ccomplete#Complete
|
setlocal ofu=ccomplete#Complete
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user