vim-patch:596ad66d1ddb (#25102)

runtime(doc): documentation updates

This is a collection of various improvements to the help pages

closes vim/vim#12790

596ad66d1d

Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Houl <anwoku@yahoo.de>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl>
This commit is contained in:
zeertzjq
2023-09-12 07:37:05 +08:00
committed by GitHub
parent 65738202f8
commit 4b6023be7c
4 changed files with 21 additions and 28 deletions

View File

@@ -550,28 +550,21 @@ end
-- @param o vim.option_meta
-- @return string
local function scope_more_doc(o)
if
vim.list_contains({
'previewwindow',
'scroll',
'winfixheight',
'winfixwidth',
}, o.full_name)
then
return ' |special-local-window-option|'
end
if
vim.list_contains({
'bufhidden',
'buftype',
'filetype',
'modified',
'previewwindow',
'readonly',
'scroll',
'syntax',
'winfixheight',
'winfixwidth',
}, o.full_name)
then
return ' |special-local-buffer-option|'
return ' |local-noglobal|'
end
return ''