diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2020-06-19 00:23:30 -0400 |
---|---|---|
committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-07-10 16:17:33 -0400 |
commit | 971a191c4d772493535d55524b994fe385fae546 (patch) | |
tree | 3f8cb844a1ddb58ab917b6ceb78e4984a1fbbd58 /src/nvim/lua/vim.lua | |
parent | a695da7d3fac19624d458e3f2980b4c0e55f50a4 (diff) | |
download | rneovim-971a191c4d772493535d55524b994fe385fae546.tar.gz rneovim-971a191c4d772493535d55524b994fe385fae546.tar.bz2 rneovim-971a191c4d772493535d55524b994fe385fae546.zip |
lua: Add ability to pass lua functions directly to vimL
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index 18256242e8..820b237c4f 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -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) |