docs(api): return type of nvim_get_keymap() #31708

This commit is contained in:
Shihua Zeng
2024-12-24 12:56:10 -05:00
committed by GitHub
parent f8df96d276
commit b51110f4a1
3 changed files with 24 additions and 4 deletions

View File

@@ -26,11 +26,11 @@ local LUA_API_RETURN_OVERRIDES = {
nvim_buf_get_command = 'table<string,vim.api.keyset.command_info>',
nvim_buf_get_extmark_by_id = 'vim.api.keyset.get_extmark_item_by_id',
nvim_buf_get_extmarks = 'vim.api.keyset.get_extmark_item[]',
nvim_buf_get_keymap = 'vim.api.keyset.keymap[]',
nvim_buf_get_keymap = 'vim.api.keyset.get_keymap[]',
nvim_get_autocmds = 'vim.api.keyset.get_autocmds.ret[]',
nvim_get_color_map = 'table<string,integer>',
nvim_get_command = 'table<string,vim.api.keyset.command_info>',
nvim_get_keymap = 'vim.api.keyset.keymap[]',
nvim_get_keymap = 'vim.api.keyset.get_keymap[]',
nvim_get_mark = 'vim.api.keyset.get_mark',
-- Can also return table<string,vim.api.keyset.get_hl_info>, however we need to