aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-09-08 09:47:10 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2020-11-01 19:14:56 +0100
commitc146eddc8b768f1cd395ea0ce54c19e64eff0c08 (patch)
treeda1fe59768dcc60901da66b18d848b2d81b6e072 /test/functional/helpers.lua
parent037ffd54dcd8edba6787d93273e6696b7a366ac6 (diff)
downloadrneovim-c146eddc8b768f1cd395ea0ce54c19e64eff0c08.tar.gz
rneovim-c146eddc8b768f1cd395ea0ce54c19e64eff0c08.tar.bz2
rneovim-c146eddc8b768f1cd395ea0ce54c19e64eff0c08.zip
api: add API for themes
co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 0bd378d832..d85a6a3cfe 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -751,6 +751,14 @@ module.curbufmeths = module.create_callindex(module.curbuf)
module.curwinmeths = module.create_callindex(module.curwin)
module.curtabmeths = module.create_callindex(module.curtab)
+function module.exec(code)
+ return module.meths.exec(code, false)
+end
+
+function module.exec_capture(code)
+ return module.meths.exec(code, true)
+end
+
function module.exec_lua(code, ...)
return module.meths.exec_lua(code, {...})
end