summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/lua/overrides_spec.lua
AgeCommit message (Collapse)AuthorFiles
2025-05-04feat(messages): cleanup Lua error messagesJustin M. Keyes1
"Error" in error messages is redundant. Just provide the context, don't say "Error ...".
2024-11-14fix(tests): needing two calls to setup a screen is cringebfredl1
Before calling "attach" a screen object is just a dummy container for (row, col) values whose purpose is to be sent as part of the "attach" function call anyway. Just create the screen in an attached state directly. Keep the complete (row, col, options) config together. It is still completely valid to later detach and re-attach as needed, including to another session.
2024-09-21test: support upvalues in exec_luaLewis Russell1
2024-04-23test: improve test conventionsdundargoc1
Specifically, functions that are run in the context of the test runner are put in module `test/testutil.lua` while the functions that are run in the context of the test session are put in `test/functional/testnvim.lua`. Closes https://github.com/neovim/neovim/issues/27004.
2024-04-10refactor(test): inject after_each differentlyLewis Russell1
2024-04-08test: improve test conventionsdundargoc1
Work on https://github.com/neovim/neovim/issues/27004.
2024-03-25fix(test): typingLewis Russell1
2024-01-12test: rename (meths, funcs) -> (api, fn)Lewis Russell1
2024-01-12test: normalise nvim bridge functionsLewis Russell1
- remove helpers.cur*meths - remove helpers.nvim
2024-01-12test: typing for helpers.methsLewis Russell1
2024-01-12test: do not inject vim module into global helpersLewis Russell1
2024-01-03refactor: format test/*Justin M. Keyes1
2023-12-09test: avoid repeated screen lines in expected stateszeertzjq1
This is the command invoked repeatedly to make the changes: :%s/^\(.*\)|\%(\*\(\d\+\)\)\?$\n\1|\%(\*\(\d\+\)\)\?$/\=submatch(1)..'|*'..(max([str2nr(submatch(2)),1])+max([str2nr(submatch(3)),1]))/g
2023-08-31feat(treesitter): improve query error messageAmaan Qureshi1
2023-07-04fix(api, lua): make blank lines in a message work properly (#24244)zeertzjq1
2023-06-03feat(lua): rename vim.loop -> vim.uv (#22846)Lewis Russell1
2023-05-21refactor(options): deprecate nvim[_buf|_win]_[gs]et_optionLewis Russell1
Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: famiu <famiuhaque@protonmail.com>
2023-02-22feat(lua): make sure require'bit' always works, even with PUC lua 5.1bfredl1
2022-11-22test: simplify platform detection (#21020)dundargoc1
Extend the capabilities of is_os to detect more platforms such as freebsd and openbsd. Also remove `iswin()` helper function as it can be replaced by `is_os("win")`.
2022-08-17fix(tests): remove irrelevant usage of display-=msgsepbfredl1
These were just added to avoid churn when changing the default of 'display'. To simplify message handling logic, we might want to remove support for printing messages in default_grid later on. This would allow things like printing error messages safely in the middle of redraw, or a future graduation of the 'multigrid' feature.
2022-02-25feat: call __tostring on lua errors if possible before reporting to userOliver Marriott1
2021-11-06feat(lua): enable stack traces in error output (#16228)Gregory Anders1
2021-09-19refactor(tests): remove redir_exec #15718Justin M. Keyes1
Problem - `redir_exec` is obsolete, but it keeps getting used in new tests because people copy existing tests. - Disadvantages of `redir_exec`: - Captures extra junk before the actual error/message that we _want_ to test. - Does not fail on error, unlike e.g. `command()`. Solution - Use new functions like `nvim_exec` and `pcall_err`.
2020-11-02fixup! startup: handle autoload and lua packages during startupJan Edmund Lazo1
2020-11-02startup: handle autoload and lua packages during startupBjörn Linse1
¡NO HAY BANDA!
2019-12-02API: rename nvim_execute_lua => nvim_exec_luaJustin M. Keyes1
- 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`.
2019-11-16Add v:lua.func() vimL syntax for calling luaBjörn Linse1
Also simplify error messages when calling lua from vimL.
2019-08-05lua: do not crash on syntax error in debug.debug()Björn Linse1
2019-08-05lua: immediate-callback safe print()Björn Linse1
2019-03-16Merge #9686 'win/Lua: monkey-patch os.getenv()'Justin M. Keyes1
fixes #9681
2019-03-07Fix os.getenv of lua on Windowserw71
Change to use os_getenv instead of getenv because environment variable set by uv_os_setenv can not be get with getenv.
2018-03-31msg: do not scroll entire screen (#8088)Björn Linse1
2017-08-13lua/executor: Fix crash when printing empty string (#7157)Nikolai Aleksandrovich Pavlov1
2017-05-28lua: Use automatic determining of suffixes only for package.cpathZyX1
2017-05-25lua: Add paths from &runtimepath to package.path and package.cpathZyX1
2017-03-27eval,functests: Fix linter errorsZyX1
2017-03-27functests: Add test for debug.debugZyX1
2017-03-27executor,functests: Add print() tests, some fixesZyX1