aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/php.vim
diff options
context:
space:
mode:
authorBarrett Ruth <br@barrettruth.com>2026-07-13 14:36:36 -0500
committerChristian Clason <ch.clason+github@icloud.com>2026-07-14 00:18:50 +0200
commit0bb2f5cc08012175cf9915ce6309b2691e7ae44c (patch)
treee9d5a36ee0217918ff099bb7a4d3cf67b2c48daa /runtime/ftplugin/php.vim
parentfd02e913198f87fdcf4c031d9defdce225573dfb (diff)
downloadrneovim-0bb2f5cc08012175cf9915ce6309b2691e7ae44c.tar.gz
rneovim-0bb2f5cc08012175cf9915ce6309b2691e7ae44c.tar.bz2
rneovim-0bb2f5cc08012175cf9915ce6309b2691e7ae44c.zip
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.
Diffstat (limited to 'runtime/ftplugin/php.vim')
-rw-r--r--runtime/ftplugin/php.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/php.vim b/runtime/ftplugin/php.vim
index e124961ba1..b984ad4a9f 100644
--- a/runtime/ftplugin/php.vim
+++ b/runtime/ftplugin/php.vim
@@ -24,7 +24,7 @@ else
endif
let s:match_words = ""
-runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
+runtime! ftplugin/html[.]{vim,lua} ftplugin/html_*.{vim,lua} ftplugin/html/*.{vim,lua}
let b:did_ftplugin = 1
" Override our defaults if these were set by an included ftplugin.