summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/lua/vim_spec.lua
AgeCommit message (Collapse)AuthorFiles
2020-06-02lua: fix infinite loop for vim.split on empty string (#12420)notomo1
2020-05-30lua: vim.wait implementationTJ DeVries1
2020-05-19test: fix flaky vim.defer_fn testHirokazu Hata1
2020-05-18lua: Add highlight.on_yank (#12279)Christian Clason1
* add lua function to highlight yanked region * extract namespace, better naming, default values * add default for event argument * free timer * factor out mark to position calculation * d'oh * make sure timer stops before callback (cf. luv example) * factor out timer, more documentation * fixup * validate function argument for schedule * fix block selection past eol * correct handling of multibyte characters * move arguments around, some cleanup * move utility functions to vim.lua * use anonymous namespaces, avoid local api * rename function * add test for schedule_fn * fix indent * turn hl-yank into proper (hightlight) module * factor out position-to-region function mark extraction now part of highlight.on_yank * rename schedule_fn to defer_fn * add test for vim.region * todo: handle double-width characters * remove debug printout * do not shadow arguments * defer also callable table * whitespace change * move highlight to vim/highlight.lua * add documentation * add @return documentation * test: add check before vim.defer fires * doc: fixup
2020-05-17lua: add tbl_deep_extend (#11969)Hirokazu Hata1
2020-05-07lua: Add buffer, window and tab accessors (#12268)TJ DeVries1
* Add buffer, window and tab accessors * Fix deletion and add tests
2020-04-19lua: allow deepcopy of functions (#12136)Tristan Konolige1
2020-03-01lua: add vim.tbl_len() #11889Hirokazu Hata1
2020-02-26lua: add regex support, and `@match` support in treesitter queriesBjörn Linse1
2020-02-18lua: move test helper function, map and filter, to vim.shared moduleHirokazu Hata1
2020-02-15Merge pull request #11864 from h-michael/deepcopyBjörn Linse1
lua: vim.deepcopy() and vim.tbl_extend() should preserve vim.empty_dict()
2020-02-14lua: add vim.tbl_extend and vim.deepcopy testHirokazu Hata1
2020-02-13lua: vim.deepcopy uses empty_dict() instead of {} for empty_dict()Hirokazu Hata1
fix: https://github.com/neovim/nvim-lsp/issues/94
2020-02-12test: add json_encode test for vim.empty_dict()Hirokazu Hata1
2020-01-01lua: metatable for empty dict valueBjörn Linse1
2019-12-07Fix access on vim.wo (#11517)Ashkan Kiani1
* Add more tests for vim.wo
2019-12-01Add vim.startswith and vim.endswith (#11248)Ashkan Kiani1
2019-12-01Add vim.cmd as an alias for nvim_command (#11446)Ashkan Kiani1
2019-12-01Return nil instead of NIL for vim.env (#11486)Ashkan Kiani1
2019-11-26lua: make vim.wo and vim.bo used nested indexing for specified handleBjörn Linse1
Also missing option should be an error. Options are functionality, not arbitrary variable names (as for vim.g)
2019-11-24Merge branch 'master' into lsp-followupAshkan Kiani1
2019-11-24Lua: vim.env, vim.{g,v,w,bo,wo} #11442Ashkan Kiani1
- 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.
2019-11-20Extend list_extend to take start/finish.Ashkan Kiani1
2019-11-13lua LSP client: initial implementation (#11336)Ashkan Kiani1
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.
2019-11-10Lua: Use vim.validate() instead of assert()Justin M. Keyes1
2019-11-10Lua: vim.validate()Justin M. Keyes1
2019-11-10Lua: vim.validate()Hirokazu Hata1
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