Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | lua: move test helper function, map and filter, to vim.shared module | Hirokazu Hata | 2020-02-18 |
| | |||
* | Merge pull request #11864 from h-michael/deepcopy | Björn Linse | 2020-02-15 |
|\ | | | | | lua: vim.deepcopy() and vim.tbl_extend() should preserve vim.empty_dict() | ||
| * | lua: add vim.tbl_extend and vim.deepcopy test | Hirokazu Hata | 2020-02-14 |
| | | |||
| * | lua: vim.deepcopy uses empty_dict() instead of {} for empty_dict() | Hirokazu Hata | 2020-02-13 |
| | | | | | | | | fix: https://github.com/neovim/nvim-lsp/issues/94 | ||
* | | test: add json_encode test for vim.empty_dict() | Hirokazu Hata | 2020-02-12 |
|/ | |||
* | treesitter: add standard &rtp/parser/ search path for parsers | Björn Linse | 2020-02-07 |
| | |||
* | doc: fix typos [ci skip] #11787 | Hye Sung Jung | 2020-01-30 |
| | |||
* | Fix shift change callbacks reading bad cursor (#11782) | Axel Forsman | 2020-01-30 |
| | | | | | | | | | | | | | | Sloppy code inherited from Vim caused user scripts to be able to observe the cursor line in an invalid intermediary state, due to Neovim change callbacks being unbuffered unlike Vim listeners. Manifested in Vimscript executed from the callback possibly erroring when `:call`:ing any function, due to the implicit range `curwin->w_cursor.lnum,curwin->w_cursor.lnum` failing validation. Fixed by deferring the call to `changed_lines()` until after `curwin->w_cursor.lnum` gets its correct value. | ||
* | API: include invalid buffer/window/tabpage in error message (#11712) | Daniel Hahler | 2020-01-14 |
| | |||
* | lua: metatable for empty dict value | Björn Linse | 2020-01-01 |
| | |||
* | tree-sitter: implement query functionality and highlighting prototype ↵ | Björn Linse | 2019-12-22 |
| | | | | [skip.lint] | ||
* | Fix access on vim.wo (#11517) | Ashkan Kiani | 2019-12-07 |
| | | | * Add more tests for vim.wo | ||
* | API: rename nvim_execute_lua => nvim_exec_lua | Justin M. Keyes | 2019-12-02 |
| | | | | | | - We already find ourselves renaming nvim_execute_lua in tests and scripts, which suggests "exec" is the verb we actually want. - Add "exec" verb to `:help dev-api`. | ||
* | Add vim.startswith and vim.endswith (#11248) | Ashkan Kiani | 2019-12-01 |
| | |||
* | Add vim.cmd as an alias for nvim_command (#11446) | Ashkan Kiani | 2019-12-01 |
| | |||
* | Return nil instead of NIL for vim.env (#11486) | Ashkan Kiani | 2019-12-01 |
| | |||
* | lua: make vim.wo and vim.bo used nested indexing for specified handle | Björn Linse | 2019-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-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 |
| |