Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | test: Rename meth_pcall to pcall_err | Justin M. Keyes | 2019-09-06 |
| | | | | | | | - 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. | ||
* | api: make try_end clean-up after an exception properly. Fixes #10809 | Björn Linse | 2019-09-02 |
| | | | | | | Otherwise `force_abort` will cause an emsg() higher on the stack to be converted to an exception, even though it is outside any try/catch. | ||
* | lua: minimal UTF-16 support needed for LSP | Björn Linse | 2019-08-08 |
| | |||
* | lua: support getting UTF-32 and UTF-16 sizes of replaced text | Björn Linse | 2019-08-06 |
| | |||
* | lua: add {old_byte_size} to on_lines buffer change event | Björn Linse | 2019-08-06 |
| | |||
* | lua: add vim.in_fast_event() to check if we are in a luv callback | Björn Linse | 2019-08-05 |
| | |||
* | lua: do not crash on syntax error in debug.debug() | Björn Linse | 2019-08-05 |
| | |||
* | lua: immediate-callback safe print() | Björn Linse | 2019-08-05 |
| | |||
* | tests: loop_spec: retry (#10413) | Daniel Hahler | 2019-07-04 |
| | | | | | | | | | | | | | | Flaky test (osx): [ FAILED ] ...is/build/neovim/neovim/test/functional/lua/loop_spec.lua @ 23: vim.loop timer ...is/build/neovim/neovim/test/functional/lua/loop_spec.lua:56: Expected objects to be the same. Passed in: (number) 0 Expected: (number) 2 stack traceback: ...is/build/neovim/neovim/test/functional/lua/loop_spec.lua:56: in function <...is/build/neovim/neovim/test/functional/lua/loop_spec.lua:23> It was bumped from sleeping for 20ms to 50ms in d33aaa0f5f already. | ||
* | make vim.loop == require'luv' | Björn Linse | 2019-06-30 |
| | | | | | This avoids initializing libluv a second time if a plugin invokes require'luv'. It is probably not an issue, but better to be safe. | ||
* | libluv: use luv_set_callback to control callback execution | Björn Linse | 2019-06-30 |
| | | | | | Disable the use of deferred API functions in a fast lua callback Correctly display error messages from a fast lua callback | ||
* | api/lua: add on_detach to nvim_buf_attach | Björn Linse | 2019-06-15 |
| | |||
* | lua: introduce vim.loop (expose libuv event-loop) #10123 | George Zhao | 2019-06-10 |
| | | | | | | Co-authored-by: Andrey Popp <8mayday@gmail.com> closes #9546 closes #10084 | ||
* | lua: docs and tests for vim.schedule | Björn Linse | 2019-06-05 |
| | |||
* | Merge #9686 'win/Lua: monkey-patch os.getenv()' | Justin M. Keyes | 2019-03-16 |
|\ | | | | | | | fixes #9681 | ||
| * | Fix os.getenv of lua on Windows | erw7 | 2019-03-07 |
|/ | | | | | Change to use os_getenv instead of getenv because environment variable set by uv_os_setenv can not be get with getenv. | ||
* | tests/lua: test for multiline error messages in lua | Björn Linse | 2019-01-23 |
| | |||
* | lua: expose full interface of vim.inspect and add test | Björn Linse | 2019-01-14 |
| | | | | | | Implement lazy loading for vim.submodule, this would be over-engineering for inspect only, but we expect to use this solution also for more and larger modules. | ||
* | Merge #9463 'Lua stdlib' | Justin M. Keyes | 2019-01-14 |
|\ | |||
| * | lua/stdlib: Load runtime modules on-demand | Justin M. Keyes | 2019-01-14 |
| | | | | | | | | | | | | | | | | | | | | Instead of eager-loading during plugin/* sourcing, define runtime modules such as `vim.inspect` as lazy builtins. Otherwise non-builtin Lua modules such as `vim.inspect` would not be available during startup (init.vim, `-c`, `--cmd`, …). ref #6580 ref #8677 | ||
| * | lua/stdlib: vim.inspect, string functions | KillTheMule | 2019-01-14 |
|/ | | | | | ref #6580 ref #8677 | ||
* | API: return non-generic VimL errors | Justin M. Keyes | 2018-05-09 |
| | | | | | | | | | | - Return VimL errors instead of generic errors for: - nvim_call_function - nvim_call_dict_function - Fix tests which were silently broken before this change. This violates #6150 where we agreed not to translate API errors. But that can be fixed later. | ||
* | msg: do not scroll entire screen (#8088) | Björn Linse | 2018-03-31 |
| | |||
* | Merge #7165 'lua: Move stricmp to vim module' | Justin M. Keyes | 2017-10-22 |
|\ | |||
| * | lua/executor: Fix crash when first string contains NUL and second not | ZyX | 2017-08-15 |
| | | |||
| * | lua/executor: Move stricmp to vim “module” and document it | ZyX | 2017-08-15 |
| | | |||
| * | functests: Add test for stricmp | ZyX | 2017-08-15 |
|/ | |||
* | lua/executor: Fix crash when printing empty string (#7157) | Nikolai Aleksandrovich Pavlov | 2017-08-13 |
| | |||
* | lua: Use automatic determining of suffixes only for package.cpath | ZyX | 2017-05-28 |
| | |||
* | lua: Add paths from &runtimepath to package.path and package.cpath | ZyX | 2017-05-25 |
| | |||
* | functests: Fix tests | ZyX | 2017-05-08 |
| | |||
* | Merge branch 'master' into luaviml'/lua | ZyX | 2017-05-08 |
| | |||
* | functests: Check whether it is a problem with an array | ZyX | 2017-04-11 |
| | |||
* | functests: Add another check for the similar transformation | ZyX | 2017-04-11 |
| | | | | | | | Reasoning is majorly the same: check whether lua has bug or API function has bug, but on the other side: previous commit is checking whether similar bug when using API via msgpack RPC, this commit is checking whether another API function used via lua bindings triggers the same bug. Should additionally give a hint about which lua code contains a bug. | ||
* | functests: Make sure funcs.luaeval receives only one argument | ZyX | 2017-04-11 |
| | |||
* | api: Rename _vim_id functions to nvim__id | ZyX | 2017-04-08 |
| | |||
* | eval,functests: Fix linter errors | ZyX | 2017-03-27 |
| | |||
* | functests: Add test for debug.debug | ZyX | 2017-03-27 |
| | |||
* | executor,functests: Add print() tests, some fixes | ZyX | 2017-03-27 |
| | |||
* | executor: Add :luafile command | ZyX | 2017-03-27 |
| | |||
* | executor: Fix some memory leaks | ZyX | 2017-03-27 |
| | |||
* | executor,functests: Add tests for :luado, also some fixes | ZyX | 2017-03-27 |
| | | | | | | | | Fixes: 1. Allocate space for the NUL byte. 2. Do not exclude last line from range. 3. Remove code for sandbox: it is handled earlier. 4. Fix index in new_line_transformed when converting NULs to NLs. 5. Always allocate new_line_transformed, but save allocated value. | ||
* | executor: Add :luado command | ZyX | 2017-03-27 |
| | |||
* | doc,functests: Add documentation | ZyX | 2017-03-27 |
| | | | Missing: updates to various lists. | ||
* | functests: Add tests for :lua | ZyX | 2017-03-27 |
| | |||
* | functests: Some more tests | ZyX | 2017-03-27 |
| | |||
* | functests: Move existing tests from lua_spec to lua/*, fix them | ZyX | 2017-03-27 |
| | |||
* | functests: Add some tests | ZyX | 2017-03-27 |