mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 17:02:59 +00:00
Problem:
Vimscript ftplugins that inherit a base ftplugin often use explicit
`runtime! ftplugin/foo.vim` patterns. This skips corresponding Lua
ftplugins, unlike top-level ftplugin loading.
Solution:
Use the existing `{vim,lua}` patterns for bang runtime imports while
preserving each call's current lookup breadth.
18 lines
492 B
VimL
18 lines
492 B
VimL
" Vim filetype plugin file
|
|
" Language: Ch
|
|
" Maintainer: SoftIntegration, Inc. <info@softintegration.com>
|
|
" URL: http://www.softintegration.com/download/vim/ftplugin/ch.vim
|
|
" Last change: 2004 May 16
|
|
" Created based on cpp.vim
|
|
"
|
|
" Ch is a C/C++ interpreter with many high level extensions
|
|
"
|
|
|
|
" Only do this when not done yet for this buffer
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
|
|
" Behaves just like C
|
|
runtime! ftplugin/c[.]{vim,lua} ftplugin/c_*.{vim,lua} ftplugin/c/*.{vim,lua}
|