Files
neovim/runtime/ftplugin/groff.vim
Barrett Ruth 0bb2f5cc08 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.
2026-07-14 00:18:50 +02:00

20 lines
461 B
VimL

" Vim syntax file
" Language: groff(7)
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
" Last Change: 2025 Apr 24
" 2025 Jun 18 by Vim Project: update commentstring option (#17516)
if exists('b:did_ftplugin')
finish
endif
let b:nroff_is_groff = 1
runtime! ftplugin/nroff[.]{vim,lua}
setlocal commentstring=\\#\ %s
setlocal comments=:\\#,:.\\\",:\\\",:'\\\",:'''
let b:undo_ftplugin .= '| unlet! b:nroff_is_groff'
let b:did_ftplugin = 1