Justin M. Keyes
5b04a4fa09
lua/shared: share trim() impl
2019-05-20 23:46:56 +02:00
Justin M. Keyes
5c13f368c6
lint
2019-05-19 21:26:33 +02:00
Justin M. Keyes
fab81cfb04
lua/shared: share more stuff
...
Leave trim() in vim.lua, because gen_vimdoc.py needs at least one
function in there, else it gets confused...
2019-05-19 18:31:40 +02:00
Justin M. Keyes
e4c2d85c77
lua/shared: share deepcopy() with test/*
...
deepcopy() was duplicated in test/helpers.lua
2019-05-19 17:58:54 +02:00
Justin M. Keyes
e628c011bf
gen_vimdoc.py: support lua/shared.lua module [ci skip]
2019-05-19 17:30:20 +02:00
Justin M. Keyes
9d7aaf7149
lua/shared: move table util funcs to vim.shared
...
Use `tbl_` prefix for all table-util functions. Specify in the function
docstring if it expects a list-like or map-like table.
2019-05-18 21:07:30 +02:00
Justin M. Keyes
bba75eb184
lua/stdlib: Introduce vim.shared
...
This is where "pure functions" can live, which can be shared by Nvim and
test logic which may not have a running Nvim instance available.
If in the future we use Nvim itself as the Lua engine for tests, then
these functions could be moved directly onto the `vim` Lua module.
closes #6580
2019-05-18 15:48:13 +02:00