mirror of
https://github.com/neovim/neovim.git
synced 2026-07-29 11:58:02 +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
@@ -7,7 +7,7 @@ if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
" Looks a lot like dosini files.
|
||||
runtime! ftplugin/dosini.vim
|
||||
runtime! ftplugin/dosini[.]{vim,lua}
|
||||
|
||||
if has('unix') && executable('less') && exists(':terminal') == 2
|
||||
command! -buffer -nargs=1 SystemdKeywordPrg silent exe 'term ++close ' KeywordLookup_systemd(<q-args>)
|
||||
|
||||
Reference in New Issue
Block a user