fix: luacheck

This commit is contained in:
Lewis Russell 2023-07-17 16:32:56 +01:00
parent e6e0bc225b
commit 69d49727d7
8 changed files with 19 additions and 5 deletions

View File

@ -1,5 +1,7 @@
---@meta
-- luacheck: no unused args
---@defgroup vim.builtin
---
---@brief <pre>help

View File

@ -1,5 +1,7 @@
---@meta
-- luacheck: no unused args
--- Run diff on strings {a} and {b}. Any indices returned by this function,
--- either directly or via callback arguments, are 1-based.
---

View File

@ -1,5 +1,7 @@
--- @meta
-- luacheck: no unused args
--- @defgroup vim.json
---
--- This module provides encoding and decoding of Lua objects to and

View File

@ -1,5 +1,7 @@
---@meta
-- luacheck: no unused args
--- Invokes |vim-function| or |user-function| {func} with arguments {...}.
--- See also |vim.fn|.
--- Equivalent to:

View File

@ -1,5 +1,7 @@
--- @meta
-- luacheck: no unused args
--- @defgroup vim.mpack
---
--- This module provides encoding and decoding of Lua objects to and

View File

@ -1,5 +1,7 @@
--- @meta
-- luacheck: no unused args
--- @defgroup vim.regex
---
--- @brief Vim regexes can be used directly from Lua. Currently they only allow
@ -13,7 +15,7 @@
function vim.regex(re) end
--- @class vim.regex
local regex = {}
local regex = {} -- luacheck: no unused
--- Match the string against the regex. If the string should match the regex
--- precisely, surround the regex with `^` and `$`. If the was a match, the

View File

@ -1,5 +1,7 @@
--- @meta
-- luacheck: no unused args
--- Check {str} for spelling errors. Similar to the Vimscript function
--- |spellbadword()|.
---

View File

@ -846,7 +846,7 @@ end
---</pre>
--- @diagnostic disable-next-line:unused-local used for gen_vimdoc
local Option = {}
local Option = {} -- luacheck: no unused
---Returns a Lua-representation of the option. Boolean, number and string
---values will be returned in exactly the same fashion.
@ -901,7 +901,7 @@ function Option:get() end
---</pre>
---@param value string Value to append
--- @diagnostic disable-next-line:unused-local used for gen_vimdoc
function Option:append(value) end
function Option:append(value) end -- luacheck: no unused
---Prepend a value to string-style options. See |:set^=|
---
@ -911,7 +911,7 @@ function Option:append(value) end
---</pre>
---@param value string Value to prepend
---@diagnostic disable-next-line:unused-local used for gen_vimdoc
function Option:prepend(value) end
function Option:prepend(value) end -- luacheck: no unused
---Remove a value from string-style options. See |:set-=|
---
@ -921,7 +921,7 @@ function Option:prepend(value) end
---</pre>
---@param value string Value to remove
---@diagnostic disable-next-line:unused-local used for gen_vimdoc
function Option:remove(value) end
function Option:remove(value) end -- luacheck: no unused
vim.opt = create_option_accessor()
vim.opt_local = create_option_accessor('local')