aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua
Commit message (Collapse)AuthorAge
* lua: make vim.wo and vim.bo used nested indexing for specified handleBjörn Linse2019-11-26
| | | | | Also missing option should be an error. Options are functionality, not arbitrary variable names (as for vim.g)
* Merge branch 'master' into lsp-followupAshkan Kiani2019-11-24
|\
| * Lua: vim.env, vim.{g,v,w,bo,wo} #11442Ashkan Kiani2019-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 Kiani2019-11-20
|/
* Add v:lua.func() vimL syntax for calling luaBjörn Linse2019-11-16
| | | | Also simplify error messages when calling lua from vimL.
* lua LSP client: initial implementation (#11336)Ashkan Kiani2019-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. Keyes2019-11-10
|
* Lua: vim.validate()Justin M. Keyes2019-11-10
|
* Lua: vim.validate()Hirokazu Hata2019-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 flakyBjörn Linse2019-11-10
|
* lua: vim.rpcrequest, vim.rpcnotify, vim.NILBjörn Linse2019-11-10
|
* doc: vim.fn, vim.call(), vim.api [ci skip]Justin M. Keyes2019-11-06
|
* lua: add vim.fn.{func} for direct access to vimL functionBjörn Linse2019-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 linenrJustin M. Keyes2019-10-26
| | | | ref #11271
* lua/stdlib: adjust some validation messages #11271Hirokazu Hata2019-10-26
| | | | close #11271
* tree-sitter: improve and cleanup testsBjörn Linse2019-09-28
|
* tree-sitter: handle node equalityBjörn Linse2019-09-28
|
* tree-sitter: use "range" instead of "point_range" consistently in lua APIBjörn Linse2019-09-28
|
* tree-sitter: fix lint, delete "demo" plugin (replaced by functional tests)Björn Linse2019-09-28
|
* tree-sitter: improve parser API (shared parser between plugins)Björn Linse2019-09-28
|
* tree-sitter: rename tree_sitter => treesitter for consistencyBjörn Linse2019-09-28
|
* tree-sitter: add basic testing on ciBjörn Linse2019-09-28
| | | | build tree-sitter c parser on ci for testing purposes
* test: Rename meth_pcall to pcall_errJustin M. Keyes2019-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 #10809Björn Linse2019-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 LSPBjörn Linse2019-08-08
|
* lua: support getting UTF-32 and UTF-16 sizes of replaced textBjörn Linse2019-08-06
|
* lua: add {old_byte_size} to on_lines buffer change eventBjörn Linse2019-08-06
|
* lua: add vim.in_fast_event() to check if we are in a luv callbackBjörn Linse2019-08-05
|
* lua: do not crash on syntax error in debug.debug()Björn Linse2019-08-05
|
* lua: immediate-callback safe print()Björn Linse2019-08-05
|
* tests: loop_spec: retry (#10413)Daniel Hahler2019-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 Linse2019-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 executionBjörn Linse2019-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_attachBjörn Linse2019-06-15
|
* lua: introduce vim.loop (expose libuv event-loop) #10123George Zhao2019-06-10
| | | | | | Co-authored-by: Andrey Popp <8mayday@gmail.com> closes #9546 closes #10084
* lua: docs and tests for vim.scheduleBjörn Linse2019-06-05
|
* Merge #9686 'win/Lua: monkey-patch os.getenv()'Justin M. Keyes2019-03-16
|\ | | | | | | fixes #9681
| * Fix os.getenv of lua on Windowserw72019-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 luaBjörn Linse2019-01-23
|
* lua: expose full interface of vim.inspect and add testBjörn Linse2019-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. Keyes2019-01-14
|\
| * lua/stdlib: Load runtime modules on-demandJustin M. Keyes2019-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 functionsKillTheMule2019-01-14
|/ | | | | ref #6580 ref #8677
* API: return non-generic VimL errorsJustin M. Keyes2018-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 Linse2018-03-31
|
* Merge #7165 'lua: Move stricmp to vim module'Justin M. Keyes2017-10-22
|\
| * lua/executor: Fix crash when first string contains NUL and second notZyX2017-08-15
| |
| * lua/executor: Move stricmp to vim “module” and document itZyX2017-08-15
| |
| * functests: Add test for stricmpZyX2017-08-15
|/
* lua/executor: Fix crash when printing empty string (#7157)Nikolai Aleksandrovich Pavlov2017-08-13
|