Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
* | Merge branch 'master' into lsp-followup | Ashkan Kiani | 2019-11-24 | |
|\ | ||||
| * | Lua: vim.env, vim.{g,v,w,bo,wo} #11442 | Ashkan Kiani | 2019-11-24 | |
| | | | | | | | | | | | | | | | | - Add vim variable meta accessors: vim.env, vim.{g,v,w,bo,wo} - Redo gen_char_blob to generate multiple blobs instead of just one so that multiple Lua modules can be inlined. - Reorder vim.lua inclusion so that it can use previously defined C functions and utility functions like vim.shared and vim.inspect things. - Inline shared.lua into nvim, but also keep it available in runtime. | |||
* | | Extend list_extend to take start/finish. | Ashkan Kiani | 2019-11-20 | |
|/ | ||||
* | Add v:lua.func() vimL syntax for calling lua | Björn Linse | 2019-11-16 | |
| | | | | Also simplify error messages when calling lua from vimL. | |||
* | lua LSP client: initial implementation (#11336) | Ashkan Kiani | 2019-11-13 | |
| | | | | | | Mainly configuration and RPC infrastructure can be considered "done". Specific requests and their callbacks will be improved later (and also served by plugins). There are also some TODO:s for the client itself, like incremental updates. Co-authored by at-tjdevries and at-h-michael, with many review/suggestion contributions. | |||
* | Lua: Use vim.validate() instead of assert() | Justin M. Keyes | 2019-11-10 | |
| | ||||
* | Lua: vim.validate() | Justin M. Keyes | 2019-11-10 | |
| | ||||
* | Lua: vim.validate() | Hirokazu Hata | 2019-11-10 | |
| | | | | | | | We often want to do type checking of public function arguments. - test: Rename utility_function_spec.lua to vim_spec.lua - .luacov: Map lua module names | |||
* | tests: vim.rpcnotify test is flaky | Björn Linse | 2019-11-10 | |
| | ||||
* | lua: vim.rpcrequest, vim.rpcnotify, vim.NIL | Björn Linse | 2019-11-10 | |
| | ||||
* | doc: vim.fn, vim.call(), vim.api [ci skip] | Justin M. Keyes | 2019-11-06 | |
| | ||||
* | lua: add vim.fn.{func} for direct access to vimL function | Björn Linse | 2019-10-27 | |
| | | | | | | | | compared to vim.api.|nvim_call_function|, this fixes some typing issues due to the indirect conversion via the API. float values are preserved as such (fixes #9389) as well as empty dicts/arrays. Ref https://github.com/norcalli/nvim.lua for the call syntax | |||
* | test/pcall_err(): truncate full paths, omit linenr | Justin M. Keyes | 2019-10-26 | |
| | | | | ref #11271 | |||
* | lua/stdlib: adjust some validation messages #11271 | Hirokazu Hata | 2019-10-26 | |
| | | | | close #11271 | |||
* | tree-sitter: improve and cleanup tests | Björn Linse | 2019-09-28 | |
| | ||||
* | tree-sitter: handle node equality | Björn Linse | 2019-09-28 | |
| | ||||
* | tree-sitter: use "range" instead of "point_range" consistently in lua API | Björn Linse | 2019-09-28 | |
| | ||||
* | tree-sitter: fix lint, delete "demo" plugin (replaced by functional tests) | Björn Linse | 2019-09-28 | |
| | ||||
* | tree-sitter: improve parser API (shared parser between plugins) | Björn Linse | 2019-09-28 | |
| | ||||
* | tree-sitter: rename tree_sitter => treesitter for consistency | Björn Linse | 2019-09-28 | |
| | ||||
* | tree-sitter: add basic testing on ci | Björn Linse | 2019-09-28 | |
| | | | | build tree-sitter c parser on ci for testing purposes | |||
* | 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 | |
| |