api_keysets.lua 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. --- @meta _
  2. -- THIS FILE IS GENERATED
  3. -- DO NOT EDIT
  4. error('Cannot require a meta file')
  5. --- @class vim.api.keyset.buf_attach
  6. --- @field on_lines? fun(_: "lines", bufnr: integer, changedtick: integer, first: integer, last_old: integer, last_new: integer, byte_count: integer, deleted_codepoints?: integer, deleted_codeunits?: integer): boolean?
  7. --- @field on_bytes? fun(_: "bytes", bufnr: integer, changedtick: integer, start_row: integer, start_col: integer, start_byte: integer, old_end_row: integer, old_end_col: integer, old_end_byte: integer, new_end_row: integer, new_end_col: integer, new_end_byte: integer): boolean?
  8. --- @field on_changedtick? fun(_: "changedtick", bufnr: integer, changedtick: integer)
  9. --- @field on_detach? fun(_: "detach", bufnr: integer)
  10. --- @field on_reload? fun(_: "reload", bufnr: integer)
  11. --- @field utf_sizes? boolean
  12. --- @field preview? boolean
  13. --- @class vim.api.keyset.buf_delete
  14. --- @field force? boolean
  15. --- @field unload? boolean
  16. --- @class vim.api.keyset.clear_autocmds
  17. --- @field buffer? integer
  18. --- @field event? string|string[]
  19. --- @field group? integer|string
  20. --- @field pattern? string|string[]
  21. --- @class vim.api.keyset.cmd
  22. --- @field cmd? string
  23. --- @field range? any[]
  24. --- @field count? integer
  25. --- @field reg? string
  26. --- @field bang? boolean
  27. --- @field args? string[]
  28. --- @field magic? table<string,any>
  29. --- @field mods? table<string,any>
  30. --- @field nargs? integer|string
  31. --- @field addr? string
  32. --- @field nextcmd? string
  33. --- @class vim.api.keyset.cmd_magic
  34. --- @field file? boolean
  35. --- @field bar? boolean
  36. --- @class vim.api.keyset.cmd_mods
  37. --- @field silent? boolean
  38. --- @field emsg_silent? boolean
  39. --- @field unsilent? boolean
  40. --- @field filter? table<string,any>
  41. --- @field sandbox? boolean
  42. --- @field noautocmd? boolean
  43. --- @field browse? boolean
  44. --- @field confirm? boolean
  45. --- @field hide? boolean
  46. --- @field horizontal? boolean
  47. --- @field keepalt? boolean
  48. --- @field keepjumps? boolean
  49. --- @field keepmarks? boolean
  50. --- @field keeppatterns? boolean
  51. --- @field lockmarks? boolean
  52. --- @field noswapfile? boolean
  53. --- @field tab? integer
  54. --- @field verbose? integer
  55. --- @field vertical? boolean
  56. --- @field split? string
  57. --- @class vim.api.keyset.cmd_mods_filter
  58. --- @field pattern? string
  59. --- @field force? boolean
  60. --- @class vim.api.keyset.cmd_opts
  61. --- @field output? boolean
  62. --- @class vim.api.keyset.complete_set
  63. --- @field info? string
  64. --- @class vim.api.keyset.context
  65. --- @field types? string[]
  66. --- @class vim.api.keyset.create_augroup
  67. --- @field clear? boolean
  68. --- @class vim.api.keyset.create_autocmd
  69. --- @field buffer? integer
  70. --- @field callback? string|(fun(args: vim.api.keyset.create_autocmd.callback_args): boolean?)
  71. --- @field command? string
  72. --- @field desc? string
  73. --- @field group? integer|string
  74. --- @field nested? boolean
  75. --- @field once? boolean
  76. --- @field pattern? string|string[]
  77. --- @class vim.api.keyset.echo_opts
  78. --- @field verbose? boolean
  79. --- @class vim.api.keyset.empty
  80. --- @class vim.api.keyset.eval_statusline
  81. --- @field winid? integer
  82. --- @field maxwidth? integer
  83. --- @field fillchar? string
  84. --- @field highlights? boolean
  85. --- @field use_winbar? boolean
  86. --- @field use_tabline? boolean
  87. --- @field use_statuscol_lnum? integer
  88. --- @class vim.api.keyset.exec_autocmds
  89. --- @field buffer? integer
  90. --- @field group? integer|string
  91. --- @field modeline? boolean
  92. --- @field pattern? string|string[]
  93. --- @field data? any
  94. --- @class vim.api.keyset.exec_opts
  95. --- @field output? boolean
  96. --- @class vim.api.keyset.get_autocmds
  97. --- @field event? string|string[]
  98. --- @field group? integer|string
  99. --- @field pattern? string|string[]
  100. --- @field buffer? integer|integer[]
  101. --- @class vim.api.keyset.get_commands
  102. --- @field builtin? boolean
  103. --- @class vim.api.keyset.get_extmark
  104. --- @field details? boolean
  105. --- @field hl_name? boolean
  106. --- @class vim.api.keyset.get_extmarks
  107. --- @field limit? integer
  108. --- @field details? boolean
  109. --- @field hl_name? boolean
  110. --- @field overlap? boolean
  111. --- @field type? string
  112. --- @class vim.api.keyset.get_highlight
  113. --- @field id? integer
  114. --- @field name? string
  115. --- @field link? boolean
  116. --- @field create? boolean
  117. --- @class vim.api.keyset.get_ns
  118. --- @field winid? integer
  119. --- @class vim.api.keyset.highlight
  120. --- @field bold? boolean
  121. --- @field standout? boolean
  122. --- @field strikethrough? boolean
  123. --- @field underline? boolean
  124. --- @field undercurl? boolean
  125. --- @field underdouble? boolean
  126. --- @field underdotted? boolean
  127. --- @field underdashed? boolean
  128. --- @field italic? boolean
  129. --- @field reverse? boolean
  130. --- @field altfont? boolean
  131. --- @field nocombine? boolean
  132. --- @field default? boolean
  133. --- @field cterm? integer|string
  134. --- @field foreground? integer|string
  135. --- @field fg? integer|string
  136. --- @field background? integer|string
  137. --- @field bg? integer|string
  138. --- @field ctermfg? integer|string
  139. --- @field ctermbg? integer|string
  140. --- @field special? integer|string
  141. --- @field sp? integer|string
  142. --- @field link? integer|string
  143. --- @field global_link? integer|string
  144. --- @field fallback? boolean
  145. --- @field blend? integer
  146. --- @field fg_indexed? boolean
  147. --- @field bg_indexed? boolean
  148. --- @field force? boolean
  149. --- @field url? string
  150. --- @class vim.api.keyset.highlight_cterm
  151. --- @field bold? boolean
  152. --- @field standout? boolean
  153. --- @field strikethrough? boolean
  154. --- @field underline? boolean
  155. --- @field undercurl? boolean
  156. --- @field underdouble? boolean
  157. --- @field underdotted? boolean
  158. --- @field underdashed? boolean
  159. --- @field italic? boolean
  160. --- @field reverse? boolean
  161. --- @field altfont? boolean
  162. --- @field nocombine? boolean
  163. --- @class vim.api.keyset.keymap
  164. --- @field noremap? boolean
  165. --- @field nowait? boolean
  166. --- @field silent? boolean
  167. --- @field script? boolean
  168. --- @field expr? boolean
  169. --- @field unique? boolean
  170. --- @field callback? function
  171. --- @field desc? string
  172. --- @field replace_keycodes? boolean
  173. --- @class vim.api.keyset.ns_opts
  174. --- @field wins? any[]
  175. --- @class vim.api.keyset.open_term
  176. --- @field on_input? fun(_: "input", term: integer, bufnr: integer, data: any)
  177. --- @field force_crlf? boolean
  178. --- @class vim.api.keyset.option
  179. --- @field scope? string
  180. --- @field win? integer
  181. --- @field buf? integer
  182. --- @field filetype? string
  183. --- @class vim.api.keyset.redraw
  184. --- @field flush? boolean
  185. --- @field cursor? boolean
  186. --- @field valid? boolean
  187. --- @field statuscolumn? boolean
  188. --- @field statusline? boolean
  189. --- @field tabline? boolean
  190. --- @field winbar? boolean
  191. --- @field range? any[]
  192. --- @field win? integer
  193. --- @field buf? integer
  194. --- @class vim.api.keyset.runtime
  195. --- @field is_lua? boolean
  196. --- @field do_source? boolean
  197. --- @class vim.api.keyset.set_decoration_provider
  198. --- @field on_start? fun(_: "start", tick: integer)
  199. --- @field on_buf? fun(_: "buf", bufnr: integer, tick: integer)
  200. --- @field on_win? fun(_: "win", winid: integer, bufnr: integer, toprow: integer, botrow: integer)
  201. --- @field on_line? fun(_: "line", winid: integer, bufnr: integer, row: integer)
  202. --- @field on_end? fun(_: "end", tick: integer)
  203. --- @field _on_hl_def? fun(_: "hl_def")
  204. --- @field _on_spell_nav? fun(_: "spell_nav")
  205. --- @class vim.api.keyset.set_extmark
  206. --- @field id? integer
  207. --- @field end_line? integer
  208. --- @field end_row? integer
  209. --- @field end_col? integer
  210. --- @field hl_group? integer|string
  211. --- @field virt_text? any[]
  212. --- @field virt_text_pos? string
  213. --- @field virt_text_win_col? integer
  214. --- @field virt_text_hide? boolean
  215. --- @field virt_text_repeat_linebreak? boolean
  216. --- @field hl_eol? boolean
  217. --- @field hl_mode? string
  218. --- @field invalidate? boolean
  219. --- @field ephemeral? boolean
  220. --- @field priority? integer
  221. --- @field right_gravity? boolean
  222. --- @field end_right_gravity? boolean
  223. --- @field virt_lines? any[]
  224. --- @field virt_lines_above? boolean
  225. --- @field virt_lines_leftcol? boolean
  226. --- @field strict? boolean
  227. --- @field sign_text? string
  228. --- @field sign_hl_group? integer|string
  229. --- @field number_hl_group? integer|string
  230. --- @field line_hl_group? integer|string
  231. --- @field cursorline_hl_group? integer|string
  232. --- @field conceal? string
  233. --- @field spell? boolean
  234. --- @field ui_watched? boolean
  235. --- @field undo_restore? boolean
  236. --- @field url? string
  237. --- @field scoped? boolean
  238. --- @class vim.api.keyset.user_command
  239. --- @field addr? any
  240. --- @field bang? boolean
  241. --- @field bar? boolean
  242. --- @field complete? any
  243. --- @field count? any
  244. --- @field desc? any
  245. --- @field force? boolean
  246. --- @field keepscript? boolean
  247. --- @field nargs? any
  248. --- @field preview? any
  249. --- @field range? any
  250. --- @field register? boolean
  251. --- @class vim.api.keyset.win_config
  252. --- @field row? number
  253. --- @field col? number
  254. --- @field width? integer
  255. --- @field height? integer
  256. --- @field anchor? string
  257. --- @field relative? string
  258. --- @field split? string
  259. --- @field win? integer
  260. --- @field bufpos? integer[]
  261. --- @field external? boolean
  262. --- @field focusable? boolean
  263. --- @field mouse? boolean
  264. --- @field vertical? boolean
  265. --- @field zindex? integer
  266. --- @field border? any
  267. --- @field title? any
  268. --- @field title_pos? string
  269. --- @field footer? any
  270. --- @field footer_pos? string
  271. --- @field style? string
  272. --- @field noautocmd? boolean
  273. --- @field fixed? boolean
  274. --- @field hide? boolean
  275. --- @class vim.api.keyset.win_text_height
  276. --- @field start_row? integer
  277. --- @field end_row? integer
  278. --- @field start_vcol? integer
  279. --- @field end_vcol? integer
  280. --- @class vim.api.keyset.xdl_diff
  281. --- @field on_hunk? fun(start_a: integer, count_a: integer, start_b: integer, count_b: integer): integer?
  282. --- @field result_type? string
  283. --- @field algorithm? string
  284. --- @field ctxlen? integer
  285. --- @field interhunkctxlen? integer
  286. --- @field linematch? boolean|integer
  287. --- @field ignore_whitespace? boolean
  288. --- @field ignore_whitespace_change? boolean
  289. --- @field ignore_whitespace_change_at_eol? boolean
  290. --- @field ignore_cr_at_eol? boolean
  291. --- @field ignore_blank_lines? boolean
  292. --- @field indent_heuristic? boolean