mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
fix: luacheck
This commit is contained in:
parent
e6e0bc225b
commit
69d49727d7
@ -1,5 +1,7 @@
|
||||
---@meta
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
---@defgroup vim.builtin
|
||||
---
|
||||
---@brief <pre>help
|
||||
|
@ -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.
|
||||
---
|
||||
|
@ -1,5 +1,7 @@
|
||||
--- @meta
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
--- @defgroup vim.json
|
||||
---
|
||||
--- This module provides encoding and decoding of Lua objects to and
|
||||
|
@ -1,5 +1,7 @@
|
||||
---@meta
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
--- Invokes |vim-function| or |user-function| {func} with arguments {...}.
|
||||
--- See also |vim.fn|.
|
||||
--- Equivalent to:
|
||||
|
@ -1,5 +1,7 @@
|
||||
--- @meta
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
--- @defgroup vim.mpack
|
||||
---
|
||||
--- This module provides encoding and decoding of Lua objects to and
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,7 @@
|
||||
--- @meta
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
--- Check {str} for spelling errors. Similar to the Vimscript function
|
||||
--- |spellbadword()|.
|
||||
---
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user