feat(lua): use keyset type information

This commit is contained in:
bfredl 2023-08-02 13:15:30 +02:00
parent 0b351c3740
commit 51c754b62e

View File

@ -4,112 +4,112 @@
error('Cannot require a meta file') error('Cannot require a meta file')
--- @class vim.api.keyset.clear_autocmds --- @class vim.api.keyset.clear_autocmds
--- @field buffer any --- @field buffer integer
--- @field event any --- @field event any
--- @field group any --- @field group any
--- @field pattern any --- @field pattern any
--- @class vim.api.keyset.cmd --- @class vim.api.keyset.cmd
--- @field cmd any --- @field cmd string
--- @field range any --- @field range any[]
--- @field count any --- @field count integer
--- @field reg any --- @field reg string
--- @field bang any --- @field bang boolean
--- @field args any --- @field args any[]
--- @field magic any --- @field magic table<string,any>
--- @field mods any --- @field mods table<string,any>
--- @field nargs any --- @field nargs any
--- @field addr any --- @field addr any
--- @field nextcmd any --- @field nextcmd any
--- @class vim.api.keyset.cmd_magic --- @class vim.api.keyset.cmd_magic
--- @field file any --- @field file boolean
--- @field bar any --- @field bar boolean
--- @class vim.api.keyset.cmd_mods --- @class vim.api.keyset.cmd_mods
--- @field silent any --- @field silent boolean
--- @field emsg_silent any --- @field emsg_silent boolean
--- @field unsilent any --- @field unsilent boolean
--- @field filter any --- @field filter table<string,any>
--- @field sandbox any --- @field sandbox boolean
--- @field noautocmd any --- @field noautocmd boolean
--- @field browse any --- @field browse boolean
--- @field confirm any --- @field confirm boolean
--- @field hide any --- @field hide boolean
--- @field horizontal any --- @field horizontal boolean
--- @field keepalt any --- @field keepalt boolean
--- @field keepjumps any --- @field keepjumps boolean
--- @field keepmarks any --- @field keepmarks boolean
--- @field keeppatterns any --- @field keeppatterns boolean
--- @field lockmarks any --- @field lockmarks boolean
--- @field noswapfile any --- @field noswapfile boolean
--- @field tab any --- @field tab integer
--- @field verbose any --- @field verbose integer
--- @field vertical any --- @field vertical boolean
--- @field split any --- @field split string
--- @class vim.api.keyset.cmd_mods_filter --- @class vim.api.keyset.cmd_mods_filter
--- @field pattern any --- @field pattern string
--- @field force any --- @field force boolean
--- @class vim.api.keyset.cmd_opts --- @class vim.api.keyset.cmd_opts
--- @field output any --- @field output boolean
--- @class vim.api.keyset.context --- @class vim.api.keyset.context
--- @field types any --- @field types any[]
--- @class vim.api.keyset.create_augroup --- @class vim.api.keyset.create_augroup
--- @field clear any --- @field clear any
--- @class vim.api.keyset.create_autocmd --- @class vim.api.keyset.create_autocmd
--- @field buffer any --- @field buffer integer
--- @field callback any --- @field callback any
--- @field command any --- @field command string
--- @field desc any --- @field desc string
--- @field group any --- @field group any
--- @field nested any --- @field nested boolean
--- @field once any --- @field once boolean
--- @field pattern any --- @field pattern any
--- @class vim.api.keyset.echo_opts --- @class vim.api.keyset.echo_opts
--- @field verbose any --- @field verbose boolean
--- @class vim.api.keyset.eval_statusline --- @class vim.api.keyset.eval_statusline
--- @field winid any --- @field winid integer
--- @field maxwidth any --- @field maxwidth integer
--- @field fillchar any --- @field fillchar string
--- @field highlights any --- @field highlights boolean
--- @field use_winbar any --- @field use_winbar boolean
--- @field use_tabline any --- @field use_tabline boolean
--- @field use_statuscol_lnum any --- @field use_statuscol_lnum integer
--- @class vim.api.keyset.exec_autocmds --- @class vim.api.keyset.exec_autocmds
--- @field buffer any --- @field buffer integer
--- @field group any --- @field group any
--- @field modeline any --- @field modeline boolean
--- @field pattern any --- @field pattern any
--- @field data any --- @field data any
--- @class vim.api.keyset.exec_opts --- @class vim.api.keyset.exec_opts
--- @field output any --- @field output boolean
--- @class vim.api.keyset.float_config --- @class vim.api.keyset.float_config
--- @field row any --- @field row number
--- @field col any --- @field col number
--- @field width any --- @field width integer
--- @field height any --- @field height integer
--- @field anchor any --- @field anchor string
--- @field relative any --- @field relative string
--- @field win any --- @field win integer
--- @field bufpos any --- @field bufpos any[]
--- @field external any --- @field external boolean
--- @field focusable any --- @field focusable boolean
--- @field zindex any --- @field zindex integer
--- @field border any --- @field border any
--- @field title any --- @field title any
--- @field title_pos any --- @field title_pos string
--- @field style any --- @field style string
--- @field noautocmd any --- @field noautocmd boolean
--- @class vim.api.keyset.get_autocmds --- @class vim.api.keyset.get_autocmds
--- @field event any --- @field event any
@ -118,27 +118,27 @@ error('Cannot require a meta file')
--- @field buffer any --- @field buffer any
--- @class vim.api.keyset.get_commands --- @class vim.api.keyset.get_commands
--- @field builtin any --- @field builtin boolean
--- @class vim.api.keyset.get_highlight --- @class vim.api.keyset.get_highlight
--- @field id any --- @field id integer
--- @field name any --- @field name string
--- @field link any --- @field link boolean
--- @class vim.api.keyset.highlight --- @class vim.api.keyset.highlight
--- @field bold any --- @field bold boolean
--- @field standout any --- @field standout boolean
--- @field strikethrough any --- @field strikethrough boolean
--- @field underline any --- @field underline boolean
--- @field undercurl any --- @field undercurl boolean
--- @field underdouble any --- @field underdouble boolean
--- @field underdotted any --- @field underdotted boolean
--- @field underdashed any --- @field underdashed boolean
--- @field italic any --- @field italic boolean
--- @field reverse any --- @field reverse boolean
--- @field altfont any --- @field altfont boolean
--- @field nocombine any --- @field nocombine boolean
--- @field default_ any --- @field default boolean
--- @field cterm any --- @field cterm any
--- @field foreground any --- @field foreground any
--- @field fg any --- @field fg any
@ -150,100 +150,100 @@ error('Cannot require a meta file')
--- @field sp any --- @field sp any
--- @field link any --- @field link any
--- @field global_link any --- @field global_link any
--- @field fallback any --- @field fallback boolean
--- @field blend any --- @field blend integer
--- @field fg_indexed any --- @field fg_indexed boolean
--- @field bg_indexed any --- @field bg_indexed boolean
--- @class vim.api.keyset.highlight_cterm --- @class vim.api.keyset.highlight_cterm
--- @field bold any --- @field bold boolean
--- @field standout any --- @field standout boolean
--- @field strikethrough any --- @field strikethrough boolean
--- @field underline any --- @field underline boolean
--- @field undercurl any --- @field undercurl boolean
--- @field underdouble any --- @field underdouble boolean
--- @field underdotted any --- @field underdotted boolean
--- @field underdashed any --- @field underdashed boolean
--- @field italic any --- @field italic boolean
--- @field reverse any --- @field reverse boolean
--- @field altfont any --- @field altfont boolean
--- @field nocombine any --- @field nocombine boolean
--- @class vim.api.keyset.keymap --- @class vim.api.keyset.keymap
--- @field noremap any --- @field noremap boolean
--- @field nowait any --- @field nowait boolean
--- @field silent any --- @field silent boolean
--- @field script any --- @field script boolean
--- @field expr any --- @field expr boolean
--- @field unique any --- @field unique boolean
--- @field callback any --- @field callback function
--- @field desc any --- @field desc string
--- @field replace_keycodes any --- @field replace_keycodes boolean
--- @class vim.api.keyset.option --- @class vim.api.keyset.option
--- @field scope any --- @field scope string
--- @field win any --- @field win integer
--- @field buf any --- @field buf integer
--- @field filetype any --- @field filetype string
--- @class vim.api.keyset.runtime --- @class vim.api.keyset.runtime
--- @field is_lua any --- @field is_lua boolean
--- @field do_source any --- @field do_source boolean
--- @class vim.api.keyset.set_decoration_provider --- @class vim.api.keyset.set_decoration_provider
--- @field on_start any --- @field on_start function
--- @field on_buf any --- @field on_buf function
--- @field on_win any --- @field on_win function
--- @field on_line any --- @field on_line function
--- @field on_end any --- @field on_end function
--- @field _on_hl_def any --- @field _on_hl_def function
--- @field _on_spell_nav any --- @field _on_spell_nav function
--- @class vim.api.keyset.set_extmark --- @class vim.api.keyset.set_extmark
--- @field id any --- @field id integer
--- @field end_line any --- @field end_line integer
--- @field end_row any --- @field end_row integer
--- @field end_col any --- @field end_col integer
--- @field hl_group any --- @field hl_group any
--- @field virt_text any --- @field virt_text any[]
--- @field virt_text_pos any --- @field virt_text_pos string
--- @field virt_text_win_col any --- @field virt_text_win_col integer
--- @field virt_text_hide any --- @field virt_text_hide boolean
--- @field hl_eol any --- @field hl_eol boolean
--- @field hl_mode any --- @field hl_mode string
--- @field ephemeral any --- @field ephemeral boolean
--- @field priority any --- @field priority integer
--- @field right_gravity any --- @field right_gravity boolean
--- @field end_right_gravity any --- @field end_right_gravity boolean
--- @field virt_lines any --- @field virt_lines any[]
--- @field virt_lines_above any --- @field virt_lines_above boolean
--- @field virt_lines_leftcol any --- @field virt_lines_leftcol boolean
--- @field strict any --- @field strict boolean
--- @field sign_text any --- @field sign_text string
--- @field sign_hl_group any --- @field sign_hl_group any
--- @field number_hl_group any --- @field number_hl_group any
--- @field line_hl_group any --- @field line_hl_group any
--- @field cursorline_hl_group any --- @field cursorline_hl_group any
--- @field conceal any --- @field conceal string
--- @field spell any --- @field spell boolean
--- @field ui_watched any --- @field ui_watched boolean
--- @class vim.api.keyset.user_command --- @class vim.api.keyset.user_command
--- @field addr any --- @field addr any
--- @field bang any --- @field bang boolean
--- @field bar any --- @field bar boolean
--- @field complete any --- @field complete any
--- @field count any --- @field count any
--- @field desc any --- @field desc any
--- @field force any --- @field force boolean
--- @field keepscript any --- @field keepscript boolean
--- @field nargs any --- @field nargs any
--- @field preview any --- @field preview any
--- @field range any --- @field range any
--- @field register_ any --- @field register boolean
--- @class vim.api.keyset.win_text_height --- @class vim.api.keyset.win_text_height
--- @field start_row any --- @field start_row integer
--- @field end_row any --- @field end_row integer
--- @field start_vcol any --- @field start_vcol integer
--- @field end_vcol any --- @field end_vcol integer