[vim/vim] runtime(help): make help omnifunc global (PR #20024)

2 views
Skip to first unread message

Peter Cardenas

unread,
Apr 19, 2026, 10:35:38 PM (20 hours ago) Apr 19
to vim/vim, Subscribed

Problem:

  • The omnifunc for help tags completion is script local making it hard to use by plugins.

Solution:

  • Make the function referenced by the omnifunc global.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20024

Commit Summary

  • e6d5151 runtime(help): make help omnifunc global

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20024@github.com>

Christian Brabandt

unread,
10:12 AM (8 hours ago) 10:12 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20024)

Thanks, but why did you move the settings from lines 20-24 to 38-41? And why did you drop the if exists() condition?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20024/c4281500470@github.com>

Peter Cardenas

unread,
2:34 PM (4 hours ago) 2:34 PM
to vim/vim, Subscribed
PeterCardenas left a comment (vim/vim#20024)

@chrisbra

why did you move the settings from lines 20-24 to 38-41

just a style preference to put function definitions before their references, can move back if we want to minimize diff

why did you drop the if exists() condition

saw in other files we didn't do it and saw we already had the early return at the top of the file so didn't seem necessary, can also add this back if we want to minimize diff


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20024/c4283346196@github.com>

Reply all
Reply to author
Forward
0 new messages