File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -889,13 +889,16 @@ like |CTRL-]|.
889
889
890
890
The function used for generating the taglist is specified by setting the
891
891
'tagfunc' option. The function will be called with three arguments:
892
- a: pattern The tag identifier or pattern used during the tag search.
893
- a: flags String containing flags to control the function behavior.
894
- a: info Dict containing the following entries:
892
+ pattern The tag identifier or pattern used during the tag search.
893
+ flags String containing flags to control the function behavior.
894
+ info Dict containing the following entries:
895
895
buf_ffname Full filename which can be used for priority.
896
896
user_data Custom data String, if stored in the tag
897
897
stack previously by tagfunc.
898
898
899
+ Note that in a legacy function "a:" needs to be prepended to the argument name
900
+ when using it.
901
+
899
902
Currently up to three flags may be passed to the tag function:
900
903
'c' The function was invoked by a normal command being processed
901
904
(mnemonic: the tag function may use the context around the
@@ -931,6 +934,8 @@ If the function returns |v:null| instead of a List, a standard tag lookup will
931
934
be performed instead.
932
935
933
936
It is not allowed to change the tagstack from inside 'tagfunc' . *E986*
937
+ It is not allowed to close a window or change window from inside 'tagfunc' .
938
+ *E1299*
934
939
935
940
The following is a hypothetical example of a function used for 'tagfunc' . It
936
941
uses the output of | taglist() | to generate the result: a list of tags in the
You can’t perform that action at this time.
0 commit comments