mirror of
https://github.com/neovim/neovim.git
synced 2026-07-24 09:50:48 +00:00
fix(ftplugin): source inherited Lua ftplugins
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.
This commit is contained in:
committed by
Christian Clason
parent
fd02e91319
commit
0bb2f5cc08
@@ -15,6 +15,6 @@ unlet! b:is_sh
|
||||
unlet! b:is_kornshell
|
||||
let b:is_bash = 1
|
||||
|
||||
runtime! ftplugin/sh.vim ftplugin/sh_*.vim ftplugin/sh/*.vim
|
||||
runtime! ftplugin/sh[.]{vim,lua} ftplugin/sh_*.{vim,lua} ftplugin/sh/*.{vim,lua}
|
||||
|
||||
" vim: ts=8
|
||||
|
||||
Reference in New Issue
Block a user