mirror of
https://github.com/neovim/neovim.git
synced 2026-05-06 08:26:45 -04:00
65b40e69ac
Problem:
- Not obvious which _meta/ are generated and which should be edited
manually.
- The require guard (`error('Cannot require a meta file')`) is not
consistently present in all meta files.
Solution:
- Update headers.
- Add require() guard to all meta files.
- Rename generated meta files with `.gen.lua`.
27 lines
697 B
Lua
27 lines
697 B
Lua
---@meta
|
|
-- This file is NOT generated, edit it directly.
|
|
error('Cannot require a meta file')
|
|
|
|
-- luacheck: no unused args
|
|
|
|
--- Invokes |vim-function| or |user-function| {func} with arguments {...}.
|
|
--- See also |vim.fn|.
|
|
--- Equivalent to:
|
|
---
|
|
--- ```lua
|
|
--- vim.fn[func]({...})
|
|
--- ```
|
|
---
|
|
--- @param func string
|
|
--- @param ... any
|
|
--- @return any
|
|
function vim.call(func, ...) end
|
|
|
|
--- Renamed to `vim.text.diff`, remove at Nvim 1.0
|
|
---@deprecated
|
|
---@param a string First string to compare
|
|
---@param b string Second string to compare
|
|
---@param opts? vim.text.diff.Opts
|
|
---@return string|integer[][]? # See {opts.result_type}. `nil` if {opts.on_hunk} is given.
|
|
function vim.diff(a, b, opts) end
|