mirror of
https://github.com/neovim/neovim
synced 2025-07-20 03:02:17 +00:00
fix: luacheck
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
---@meta
|
---@meta
|
||||||
|
|
||||||
|
-- luacheck: no unused args
|
||||||
|
|
||||||
---@defgroup vim.builtin
|
---@defgroup vim.builtin
|
||||||
---
|
---
|
||||||
---@brief <pre>help
|
---@brief <pre>help
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---@meta
|
---@meta
|
||||||
|
|
||||||
|
-- luacheck: no unused args
|
||||||
|
|
||||||
--- Run diff on strings {a} and {b}. Any indices returned by this function,
|
--- Run diff on strings {a} and {b}. Any indices returned by this function,
|
||||||
--- either directly or via callback arguments, are 1-based.
|
--- either directly or via callback arguments, are 1-based.
|
||||||
---
|
---
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
--- @meta
|
--- @meta
|
||||||
|
|
||||||
|
-- luacheck: no unused args
|
||||||
|
|
||||||
--- @defgroup vim.json
|
--- @defgroup vim.json
|
||||||
---
|
---
|
||||||
--- This module provides encoding and decoding of Lua objects to and
|
--- This module provides encoding and decoding of Lua objects to and
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---@meta
|
---@meta
|
||||||
|
|
||||||
|
-- luacheck: no unused args
|
||||||
|
|
||||||
--- Invokes |vim-function| or |user-function| {func} with arguments {...}.
|
--- Invokes |vim-function| or |user-function| {func} with arguments {...}.
|
||||||
--- See also |vim.fn|.
|
--- See also |vim.fn|.
|
||||||
--- Equivalent to:
|
--- Equivalent to:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
--- @meta
|
--- @meta
|
||||||
|
|
||||||
|
-- luacheck: no unused args
|
||||||
|
|
||||||
--- @defgroup vim.mpack
|
--- @defgroup vim.mpack
|
||||||
---
|
---
|
||||||
--- This module provides encoding and decoding of Lua objects to and
|
--- This module provides encoding and decoding of Lua objects to and
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
--- @meta
|
--- @meta
|
||||||
|
|
||||||
|
-- luacheck: no unused args
|
||||||
|
|
||||||
--- @defgroup vim.regex
|
--- @defgroup vim.regex
|
||||||
---
|
---
|
||||||
--- @brief Vim regexes can be used directly from Lua. Currently they only allow
|
--- @brief Vim regexes can be used directly from Lua. Currently they only allow
|
||||||
@ -13,7 +15,7 @@
|
|||||||
function vim.regex(re) end
|
function vim.regex(re) end
|
||||||
|
|
||||||
--- @class vim.regex
|
--- @class vim.regex
|
||||||
local regex = {}
|
local regex = {} -- luacheck: no unused
|
||||||
|
|
||||||
--- Match the string against the regex. If the string should match the regex
|
--- 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
|
--- precisely, surround the regex with `^` and `$`. If the was a match, the
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
--- @meta
|
--- @meta
|
||||||
|
|
||||||
|
-- luacheck: no unused args
|
||||||
|
|
||||||
--- Check {str} for spelling errors. Similar to the Vimscript function
|
--- Check {str} for spelling errors. Similar to the Vimscript function
|
||||||
--- |spellbadword()|.
|
--- |spellbadword()|.
|
||||||
---
|
---
|
||||||
|
@ -846,7 +846,7 @@ end
|
|||||||
---</pre>
|
---</pre>
|
||||||
|
|
||||||
--- @diagnostic disable-next-line:unused-local used for gen_vimdoc
|
--- @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
|
---Returns a Lua-representation of the option. Boolean, number and string
|
||||||
---values will be returned in exactly the same fashion.
|
---values will be returned in exactly the same fashion.
|
||||||
@ -901,7 +901,7 @@ function Option:get() end
|
|||||||
---</pre>
|
---</pre>
|
||||||
---@param value string Value to append
|
---@param value string Value to append
|
||||||
--- @diagnostic disable-next-line:unused-local used for gen_vimdoc
|
--- @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^=|
|
---Prepend a value to string-style options. See |:set^=|
|
||||||
---
|
---
|
||||||
@ -911,7 +911,7 @@ function Option:append(value) end
|
|||||||
---</pre>
|
---</pre>
|
||||||
---@param value string Value to prepend
|
---@param value string Value to prepend
|
||||||
---@diagnostic disable-next-line:unused-local used for gen_vimdoc
|
---@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-=|
|
---Remove a value from string-style options. See |:set-=|
|
||||||
---
|
---
|
||||||
@ -921,7 +921,7 @@ function Option:prepend(value) end
|
|||||||
---</pre>
|
---</pre>
|
||||||
---@param value string Value to remove
|
---@param value string Value to remove
|
||||||
---@diagnostic disable-next-line:unused-local used for gen_vimdoc
|
---@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 = create_option_accessor()
|
||||||
vim.opt_local = create_option_accessor('local')
|
vim.opt_local = create_option_accessor('local')
|
||||||
|
Reference in New Issue
Block a user