neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

misc.lua (612B)


      1 ---@meta
      2 
      3 -- luacheck: no unused args
      4 
      5 --- Invokes |vim-function| or |user-function| {func} with arguments {...}.
      6 --- See also |vim.fn|.
      7 --- Equivalent to:
      8 ---
      9 --- ```lua
     10 --- vim.fn[func]({...})
     11 --- ```
     12 ---
     13 --- @param func string
     14 --- @param ... any
     15 --- @return any
     16 function vim.call(func, ...) end
     17 
     18 --- Renamed to `vim.text.diff`, remove at Nvim 1.0
     19 ---@deprecated
     20 ---@param a string First string to compare
     21 ---@param b string Second string to compare
     22 ---@param opts? vim.text.diff.Opts
     23 ---@return string|integer[][]? # See {opts.result_type}. `nil` if {opts.on_hunk} is given.
     24 function vim.diff(a, b, opts) end