mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
fix(lua): improve annotations for stricter luals diagnostics (#24609)
Problem: luals returns stricter diagnostics with bundled luarc.json Solution: Improve some function and type annotations: * use recognized uv.* types * disable diagnostic for global `vim` in shared.lua * docs: don't start comment lines with taglink (otherwise LuaLS will interpret it as a type) * add type alias for lpeg pattern * fix return annotation for `vim.secure.trust` * rename local Range object in vim.version (shadows `Range` in vim.treesitter) * fix some "missing fields" warnings * add missing required fields for test functions in eval.lua * rename lsp meta files for consistency
This commit is contained in:
@@ -2898,6 +2898,9 @@ M.funcs = {
|
||||
signature = 'foldtextresult({lnum})',
|
||||
},
|
||||
foreground = {
|
||||
args = 0,
|
||||
params = {},
|
||||
signature = '',
|
||||
lua = false,
|
||||
},
|
||||
fullcommand = {
|
||||
@@ -11326,10 +11329,21 @@ M.funcs = {
|
||||
signature = 'termopen({cmd} [, {opts}])',
|
||||
},
|
||||
test_garbagecollect_now = {
|
||||
args = 0,
|
||||
desc = [=[
|
||||
Like |garbagecollect()|, but executed right away. This must
|
||||
only be called directly to avoid any structure to exist
|
||||
internally, and |v:testing| must have been set before calling
|
||||
any function.
|
||||
]=],
|
||||
params = {},
|
||||
signature = 'test_garbagecollect_now()',
|
||||
lua = false,
|
||||
},
|
||||
test_write_list_log = {
|
||||
args = 1,
|
||||
params = { { 'fname' } },
|
||||
signature = '',
|
||||
lua = false,
|
||||
},
|
||||
timer_info = {
|
||||
|
Reference in New Issue
Block a user