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.
10 lines
290 B
VimL
10 lines
290 B
VimL
" Placeholder livebook filetype plugin file.
|
|
" This simply uses the markdown filetype plugin.
|
|
|
|
" Only load this plugin when no other was loaded.
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
|
|
runtime! ftplugin/markdown[.]{vim,lua} ftplugin/markdown_*.{vim,lua} ftplugin/markdown/*.{vim,lua}
|