Skip to content

Commit 58b7b8b

Browse files
authored
Avoid creating flag "plugin[flags]" (#117)
Skips generating docs for a "plugin[flags]" flag corresponding to a detected plugin/flags.vim file. Just like with instant/flags.vim files, there doesn't need to be a flag to prevent loading a flags file. This helps prepare for moving away from instant/flags.vim files (see google/vim-maktaba#189).
1 parent 9b8e514 commit 58b7b8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vimdoc/module.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def Modules(directory):
426426
# because there aren't necessarily associated doc comment blocks and
427427
# the name is computed from the file name.
428428
if (not relative_path.startswith('autoload' + os.path.sep)
429+
and relative_path != os.path.join('plugin', 'flags.vim')
429430
and relative_path != os.path.join('instant', 'flags.vim')):
430431
if ContainsMaktabaPluginEnterCall(lines):
431432
flagpath = relative_path

0 commit comments

Comments
 (0)