diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 14:49:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 14:49:53 +0800 |
commit | e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a (patch) | |
tree | 0ae5f982feae83a659b83e8a9272a3cab778252b /runtime | |
parent | b042f6d9022a4c734477f1fdbc92b4f8134661b3 (diff) | |
parent | 2ed2c04aa518fb2591497e9a5ebe9cc32d8894a8 (diff) | |
download | rneovim-e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a.tar.gz rneovim-e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a.tar.bz2 rneovim-e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a.zip |
Merge pull request #20987 from zeertzjq/vim-8.2.3751
vim-patch:8.2.{3735,3751,3756,3758,3788,3792}
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 37f8ea4b20..4a277c146f 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -313,9 +313,10 @@ Note: In the future more global options can be made |global-local|. Using *option-value-function* -Some options ('completefunc', 'imactivatefunc', 'imstatusfunc', 'omnifunc', -'operatorfunc', 'quickfixtextfunc', 'tagfunc' and 'thesaurusfunc') are set to -a function name or a function reference or a lambda function. Examples: +Some options ('completefunc', 'omnifunc', 'operatorfunc', 'quickfixtextfunc', +'tagfunc' and 'thesaurusfunc') are set to a function name or a function +reference or a lambda function. When using a lambda it will be converted to +the name, e.g. "<lambda>123". Examples: > set opfunc=MyOpFunc set opfunc=function('MyOpFunc') @@ -325,10 +326,10 @@ a function name or a function reference or a lambda function. Examples: let Fn = function('MyTagFunc') let &tagfunc = string(Fn) " set using a lambda expression - let &tagfunc = "{t -> MyTagFunc(t)}" + let &tagfunc = {t -> MyTagFunc(t)} " set using a variable with lambda expression let L = {a, b, c -> MyTagFunc(a, b , c)} - let &tagfunc = string(L) + let &tagfunc = L < Setting the filetype |