aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua
Commit message (Collapse)AuthorAge
* backport: tests(lua/on_yank): assert conditions that fail correctly #15495notomo2021-09-16
| | | | | The test added in 274a3504a790a799b28ee89c75e29fb4dbdff41f does not fail if the code changes are reverted.
* backport: fix(lua): verify buffer in highlight.on_yank (#15482)notomo2021-09-16
| | | | | | Resolve an issue with deferred clearing of highlight failing if the buffer is deleted before the timeout by checking whether the buffer is valid first.
* feat(lua)!: register_keystroke_callback => on_keyJustin M. Keyes2021-09-14
| | | | | | | | | Analogous to nodejs's `on('data', …)` interface, here on_key is the "add listener" interface. ref 3ccdbc570d85 #12536 BREAKING_CHANGE: vim.register_keystroke_callback() is now an error.
* backport: fix(vim.opt): vimL map string values not trimmed (#14982)jadedpasta2021-09-14
| | | | | | | | | | Options formatted as a list of comma-separated key-value pairs may have values that contain leading and trailing whitespace characters. For example, the `listchars` option has a default value of `"tab:> ,trail:-,nbsp:+"`. When converting this value to a lua table, leading and trailing whitespace should not be trimmed. Co-authored-by: Robert Hrusecky <robert.hrusecky@utexas.edu>
* Merge pull request #14779 from tjdevries/tjdevries/vim_opt_fixesTJ DeVries2021-06-29
|\ | | | | An assortment of various vim.opt fixups.
| * fix(vim.opt): Fix #14828 with empty values being incorrectly insertedTJ DeVries2021-06-29
| |
| * fix(vim.opt): Fix #14668 Now correctly handles unescaped commas in isfname styleTJ DeVries2021-06-29
| |
| * fix(vim.opt): Fix #14669 whichwrap now acts as expectedTJ DeVries2021-06-29
| |
| * fix(vim.opt): Add basic error handlingDavid Zhang2021-06-29
| |
| * fix(vim.opt): Get window options before setting.ckipp012021-06-29
| | | | | | | | | | | | | | This closes #14677, but I also am a little unsure if there are times where this may not be correct. However, this just changes the behavior that even if `was_set` was false, we still get for `nvim_win_get_option`.
| * fix(vim.opt): #14708 Now lets you put duplicate values in wildmodeTJ DeVries2021-06-29
| |
* | Merge pull request #14335 from chentau/extmark_delbytesBjörn Linse2021-06-29
|\ \ | |/ |/| Extmarks: manually zero out `curbuf->deleted_bytes2` on substitute and join
| * Manually zero out deleted_bytes2 when substituting and joining lineschentau2021-06-29
| |
* | refactor(tests): Simplify tests at functional/lua/runtime_specshadmansaleh2021-06-11
| |
* | feat(runtime): Allow lua to be used in syntaxshadmansaleh2021-06-11
| |
* | feat(runtime): Allow lua to be used in ftdetectshadmansaleh2021-06-11
| |
* | feat(runtime): Allow lua to be used in indentshadmansaleh2021-06-11
| |
* | feat(runtime): Allow lua to be used in ftpluginshadmansaleh2021-06-11
| |
* | feat(runtime): Allow lua to be used in compilershadmansaleh2021-06-11
| |
* | feat(runtime): Allow lua to be used in colorschemesshadmansaleh2021-06-11
|/ | | | * tests(runtime): move runtime/plugin tests to functional/lua/runtime_spec
* api: add nvim_win_callnotomo2021-06-10
|
* add tests in buffer_updatesjbyuki2021-06-09
|
* lua: Add vim.opt and fix scopes of vim.o (#13479)TJ DeVries2021-05-28
| | | | | | | | | | | | | * lua: Add vim.opt * fixup: cleaning * fixup: comments * ty clason * fixup: comments * this is the last commit. period.
* Merge pull request #14575 from vigoux/virtualedit-bytesThomas Vigouroux2021-05-20
|\ | | | | fix(bufupdate): send events when inserting with virtualedit
| * fix(bufupdate): send events when inserting with virtualeditThomas Vigouroux2021-05-18
| | | | | | | | | | Problem first raised https://github.com/nvim-treesitter/nvim-treesitter/issues/1304
* | lua: use proper conversion of vim.g valuesBjörn Linse2021-05-19
|/
* make get_region_bytecount end-exclusivechentau2021-05-09
|
* refactor nvim_buf_set_lines to use extmark_splicechentau2021-05-09
|
* splice extmarks on every line for block visual pastechentau2021-05-06
|
* Merge pull request #14385 from chentau/extmark_deleteBjörn Linse2021-04-17
|\ | | | | Extmarks: remove `curbuf->deleted_bytes2` from `op_delete`
| * extmarks: remove curbuf->deleted_bytes2 from op_deletechentau2021-04-16
| |
* | flush curbuf->deleted_bytes2 after calling do_movechentau2021-04-14
|/
* Merge pull request #14318 from chentau/extmark_luadoBjörn Linse2021-04-13
|\ | | | | extmark: splice extmarks on :luado
| * extmark: splice extmarks on :luadochentau2021-04-12
| |
* | Merge pull request #14317 from chentau/extmark_subBjörn Linse2021-04-10
|\ \ | | | | | | extmark: correct extmark_splice call with substitute and inccommand when replacing with escaped backslashes
| * | extmark: correct extmark_splice call with inccommandchentau2021-04-09
| |/
* / extmark: fixes for noexpandtab and retabchentau2021-04-02
|/
* Merge pull request #14191 from chentau/extmark_blockpasteBjörn Linse2021-03-24
|\ | | | | Extmarks: send correct buffer events on blockwise paste for nonuniform lines
| * Extmarks: correct buffer events on blockwise pastechentau2021-03-23
| |
* | Correctly splice extmarks on tab with noexpandtab setchentau2021-03-22
|/
* Merge pull request #13875 from smolck/vim_fn_error_on_apiBjörn Linse2021-03-09
|\ | | | | vim.fn: throw error when trying to use API function
| * use pcall_errsmolck2021-03-09
| |
| * vim.fn: add test for errorsmolck2021-02-04
| |
* | Merge pull request #13973 from chentau/on_bytes_undofileBjörn Linse2021-03-03
|\ \ | | | | | | | | | | | | New versions of neovim will not read undofiles written by nvim before this merge (there will be an error message about incopmatible version). Nvim 0.4 (or an master up to bda12927be84f0e0e05e885f9acb40a7ac2c5524 ) can be used to recover older undofiles, so if you worried about unsaved changes lurking around in undofiles it would make sense to keep such version around somewhere to recover them. This is a necessary change to keep tree-sitter and plugins dependent on byte-level buffer change events fully working with undo states from a undofile. If there is a clear demand we might implement reading of the old format. Such recovered buffers will not be be fully functional with plugins relying on buffer updates or tree-sitter, however.
| * | Extmarks: Save extmark undo information to undofile.chentau2021-03-02
| | |
* | | Merge pull request #13692 from mjlbach/fix_cursor_respect_current_lineBjörn Linse2021-02-16
|\ \ \ | |/ / |/| | fix_cursor: do not change line number when edit will not impact cursor row
| * | tests: add test for cursor postion when deleting buffer linesMichael Lingelbach2021-01-31
| |/
* | buffer_updates: autoload episode III: revenge of the treesBjörn Linse2021-02-14
| |
* | buffer updates: add on_reload callback and handle it in treesitter parserBjörn Linse2021-02-10
| |
* | fix(buf_updates): send updates when putting past last lineThomas Vigouroux2021-02-08
| | | | | | | | Fixes #13710