robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

robinmerge: 1dc9728daa1d8a2702

master
4.2 KiB79 linesraw
1--- @meta _
2-- This file is NOT generated, edit it directly. See also _meta/vvars.gen.lua.
3error('Cannot require a meta file')
4
5--- Extra types for vim.v dictionary fields
6
7--- @class vim.v.completed_item
8--- @field word? string the text that will be inserted, mandatory
9--- abbreviation of "word"; when not empty it is used in the menu instead of "word"
10--- @field abbr? string
11--- extra text for the popup menu, displayed after "word" or "abbr"
12--- @field menu? string
13--- more information about the item, can be displayed in a preview window
14--- @field info? string
15--- @field kind? string single letter indicating the type of completion
16--- when non-zero case is to be ignored when comparing items to be equal; when
17--- omitted zero is used, thus items that only differ in case are added
18--- @field icase? integer
19--- when non-zero, always treat this item to be equal when comparing. Which
20--- means, "equal=1" disables filtering of this item.
21--- @field equal? integer
22--- when non-zero this match will be added even when an item with the same word
23--- is already present.
24--- @field dup? integer
25--- when non-zero this match will be added even when it is an empty string
26--- @field empty? integer
27--- custom data which is associated with the item and available
28--- in |v:completed_item|; it can be any type; defaults to an empty string
29--- @field user_data? any
30--- an additional highlight group whose attributes are combined
31--- with |hl-PmenuSel| and |hl-Pmenu| or |hl-PmenuMatchSel| and |hl-PmenuMatch|
32--- highlight attributes in the popup menu to apply cterm and gui properties
33--- (with higher priority) like strikethrough to the completion items abbreviation
34--- @field abbr_hlgroup? string
35--- an additional highlight group specifically for setting the highlight
36--- attributes of the completion kind. When this field is present, it will
37--- override the |hl-PmenuKind| highlight group, allowing for the customization
38--- of ctermfg and guifg properties for the completion kind
39--- @field kind_hlgroup? string
40
41--- @class vim.v.event
42--- Whether the event triggered during an aborting condition (e.g. |c_Esc| or
43--- |c_CTRL-C| for |CmdlineLeave|).
44--- @field abort? boolean
45--- @field chan? integer See |channel-id|
46--- @field info? table Dict of arbitrary event data.
47--- @field cmdlevel? integer Level of cmdline.
48--- @field cmdtype? string Type of cmdline, |cmdline-char|.
49--- @field cwd? string Current working directory.
50--- @field inclusive? boolean Motion is |inclusive|, else exclusive.
51--- @field scope? string Event-specific scope name.
52--- Current |operator|. Also set for Ex commands (unlike |v:operator|). For
53--- example if |TextYankPost| is triggered by the |:yank| Ex command then
54--- `v:event.operator` is "y".
55--- @field operator? string
56--- Text stored in the register as a |readfile()|-style list of lines.
57--- @field regcontents? string|string[]
58--- Requested register (e.g "x" for "xyy) or the empty string for an unnamed operation.
59--- @field regname? string
60--- @field regtype? string Type of register as returned by |getregtype()|.
61--- @field visual? boolean Selection is visual (as opposed to, e.g., via motion).
62--- Current selected complete item on |CompleteChanged|, Is `{}` when no
63--- complete item selected.
64--- @field completed_item? vim.v.completed_item
65--- @field height? integer Height of popup menu on |CompleteChanged|
66--- @field width? integer Width of popup menu on |CompleteChanged|
67--- @field row? integer Row count of popup menu on |CompleteChanged|, relative to screen.
68--- @field col? integer Col count of popup menu on |CompleteChanged|, relative to screen.
69--- @field size? integer Total number of completion items on |CompleteChanged|.
70--- Is |v:true| if popup menu have scrollbar, or |v:false| if not.
71--- @field scrollbar? boolean
72--- Is |v:true| if the event fired while changing window  (or tab) on |DirChanged|.
73--- @field changed_window? boolean
74--- @field status? integer Job status or exit code, -1 means "unknown". |TermClose|
75--- @field reason? string Reason for completion being done. |CompleteDone|
76--- @field complete_type? string See |complete_info_mode|
77--- @field complete_word? string The word that was selected, empty if abandoned complete.
78--- List of window IDs that changed on |WinResized|
79--- @field windows? integer[]