mirror of
https://github.com/neovim/neovim.git
synced 2026-07-30 12:28:06 +00:00
lua: Add ability to pass lua functions directly to vimL
This commit is contained in:
@@ -272,6 +272,10 @@ vim.fn = setmetatable({}, {
|
||||
end
|
||||
})
|
||||
|
||||
vim.funcref = function(viml_func_name)
|
||||
return vim.fn[viml_func_name]
|
||||
end
|
||||
|
||||
-- These are for loading runtime modules lazily since they aren't available in
|
||||
-- the nvim binary as specified in executor.c
|
||||
local function __index(t, key)
|
||||
|
||||
Reference in New Issue
Block a user