aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/converter.c
Commit message (Collapse)AuthorAge
* lua: cleanup naming conventions of executor functionsBjörn Linse2020-09-10
|
* lua: Add ability to pass tables with __callTJ DeVries2020-07-10
| | | | | | | | | | | | vim-patch:8.2.1054: not so easy to pass a lua function to Vim vim-patch:8.2.1084: Lua: registering function has useless code I think I have also opened up the possibility for people to use these callbacks elsewhere, since I've added a new struct that we should be able to use. Also, this should allow us to determine what the state of a list is in Lua or a dictionary in Lua, since we now can track the luaref as we go.
* lua: Add ability to pass lua functions directly to vimLTJ DeVries2020-07-10
|
* vim-patch:8.2.0111: VAR_SPECIAL is also used for booleansBilly Su2020-06-06
| | | | | | Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking. https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
* lua: metatable for empty dict valueBjörn Linse2020-01-01
|
* doc: fix typosBrian Wignall2019-11-27
| | | | close #11459
* lua: vim.rpcrequest, vim.rpcnotify, vim.NILBjörn Linse2019-11-10
|
* 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
* api/lua: make nvim_execute_lua use native lua floats, not special tablesBjörn Linse2019-07-01
| | | | | | | | | | Rationale: the purpose of nvim_execute_lua is to simply call lua code with lua values. If a lua function expects a floating point value, it should be enough to specify a float as argument to nvim_execute_lua. However, make sure to preserve the existing roundtripping behavior of API values when using `vim.api` functions. This is covered by existing lua/api_spec.lua tests.
* api: allow nvim_buf_attach from lua using callbacksBjörn Linse2019-06-04
|
* build/MSVC: fix "C4003: not enough actual parameters for macro"Justin M. Keyes2018-03-18
| | | | | | For the case of TV_DICTITEM_STRUCT, we can't just pass `1` because: https://github.com/neovim/neovim/pull/8142#discussion_r175262436 > this variant will trigger array overrun warnings from various static analyzers.
* *: Provide list length when allocating listsZyX2018-01-14
|
* eval,lua/converter: Fix problems spotted in reviewZyX2017-12-31
|
* *: Remove most calls to tv_list_item_allocZyX2017-12-24
| | | | Still left calls in eval/typval.c and test/unit/eval/helpers.lua. Latter is the only reason why function did not receive `static` modifier.
* *: Hide list implementation in other files as wellZyX2017-12-10
|
* *: Start hiding list implementationZyX2017-12-10
| | | | Most of files, except for eval.c and eval/* were only processed by perl.
* lua: Add PVS comment to lua/*.cZyX2017-05-20
|
* lua/converter: Fix typo in assert condition (#6708)Nikolai Aleksandrovich Pavlov2017-05-10
| | | Ref https://github.com/neovim/neovim/pull/4411#issuecomment-300248206
* Merge branch 'master' into luaviml'/luaZyX2017-05-08
|
* lua/converter: Remove useless macrosZyX2017-04-11
|
* lua: Move files from src/nvim/viml/executor to src/nvim/luaZyX2017-04-11