fix: type fixes

Type fixes caught by emmylua
This commit is contained in:
Lewis Russell
2025-06-05 11:31:51 +01:00
committed by Lewis Russell
parent 4c333fdbb7
commit 3b6084ddf4
51 changed files with 421 additions and 355 deletions

View File

@@ -32,6 +32,7 @@ local LUA_API_RETURN_OVERRIDES = {
nvim_get_command = 'table<string,vim.api.keyset.command_info>',
nvim_get_keymap = 'vim.api.keyset.get_keymap[]',
nvim_get_mark = 'vim.api.keyset.get_mark',
nvim_eval_statusline = 'vim.api.keyset.eval_statusline_ret',
-- Can also return table<string,vim.api.keyset.get_hl_info>, however we need to
-- pick one to get some benefit.
@@ -45,6 +46,7 @@ local LUA_API_RETURN_OVERRIDES = {
nvim_get_option_info2 = 'vim.api.keyset.get_option_info',
nvim_parse_cmd = 'vim.api.keyset.parse_cmd',
nvim_win_get_config = 'vim.api.keyset.win_config',
nvim_win_text_height = 'vim.api.keyset.win_text_height_ret',
}
local LUA_API_KEYSET_OVERRIDES = {