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:
Barrett Ruth
2026-07-13 14:36:36 -05:00
committed by Christian Clason
parent fd02e91319
commit 0bb2f5cc08
60 changed files with 79 additions and 67 deletions

View File

@@ -11,7 +11,7 @@ endif
let s:cpo_save = &cpo
set cpo&vim
runtime! ftplugin/basic.vim
runtime! ftplugin/basic[.]{vim,lua}
let s:dialect = freebasic#GetDialect()