summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/shared.lua
AgeCommit message (Collapse)AuthorFiles
2019-09-06test: Rename meth_pcall to pcall_errJustin M. Keyes1
- Rename `meth_pcall`. - Make `pcall_err` raise an error if the function does not fail. - Add `vim.pesc()` to treat a string as literal where a Lua pattern is expected.
2019-05-25doc #10017Justin M. Keyes1
- gen_vimdoc.py: fancy "bullet" - rework `:help channel-callback` - rename `:help buffered` to `:help channel-buffered`
2019-05-20lua/shared: share trim() implJustin M. Keyes1
2019-05-19lintJustin M. Keyes1
2019-05-19lua/shared: share more stuffJustin M. Keyes1
Leave trim() in vim.lua, because gen_vimdoc.py needs at least one function in there, else it gets confused...
2019-05-19lua/shared: share deepcopy() with test/*Justin M. Keyes1
deepcopy() was duplicated in test/helpers.lua
2019-05-19gen_vimdoc.py: support lua/shared.lua module [ci skip]Justin M. Keyes1
2019-05-18lua/shared: move table util funcs to vim.sharedJustin M. Keyes1
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-18lua/stdlib: Introduce vim.sharedJustin M. Keyes1
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