aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge pull request #16594 from shadmansaleh/feat/api/lua_keymapsBjörn Linse2021-12-31
|\ | | | | feat(api): add support for lua function & description in keymap
| * feat(api): add support for lua function & description in keymapshadmansaleh2022-01-01
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Behavioral changes: 1. Added support for lua function in keymaps in -------------------------------------------- - nvim_set_keymap Can set lua function as keymap rhs like following: ```lua vim.api.nvim_{buf_}set_keymap('n', '<leader>lr', '', {callback = vim.lsp.buf.references}) ``` Note: lua function can only be set from lua . If api function being called from viml or over rpc this option isn't available. - nvim_{buf_}get_keymap When called from lua, lua function is returned is `callback` key . But in other cases callback contains number of the function ref. - :umap, nvim_del_keymap & nvim_buf_del_keymap clears lua keymaps correctly. - :map commands for displaing rhs . For lua keymaps rhs is displayed as <Lua function ref_no> Note: lua keymap cannot be set through viml command / functions. - mapargs() When dict is false it returns string in `<Lua function ref_no>` format (same format as :map commands). When dict is true it returns ref_no number in `callback` key. - mapcheck() returns string in `<Lua function ref_no>` format (same format as :map commands). 2. Added support for keymap description --------------------------------------- - nvim_{buf_}set_keymap: added `desc` option in opts table . ```lua vim.api.nvim_set_keymap('n', '<leader>w', '<cmd>w<cr>', {desc='Save current file'}) ``` - nvim_{buf_}get_keymap: contains `desc` in returned list. - commands like `:nmap <leader>w` will show description in a new line below rhs. - `maparg()` return dict contains `desc`.
* fix(runtime): add missing release metadataBjörn Linse2021-12-31
|
* Merge pull request #16846 from dundargoc/ci/remove-brew-workaroundJames McCoy2021-12-31
|\ | | | | ci: remove outdated brew workaround that isn't needed anymore
| * ci: remove outdated brew workaround that isn't needed anymoreDundar Göc2021-12-31
| |
* | Merge pull request #16851 from zeertzjq/vim-8.2.3952Björn Linse2021-12-31
|\ \ | |/ |/| vim-patch:8.2.3952: first line not redrawn when adding lines to an empty buffer
| * vim-patch:8.2.3952: first line not redrawn when adding lines to an empty bufferzeertzjq2021-12-31
|/ | | | | | | Problem: First line not redrawn when adding lines to an empty buffer. Solution: Adjust the argument to appended_lines(). (closes vim/vim#9439, closes vim/vim#9438) https://github.com/vim/vim/commit/1fa3de1ce806ba18ebcc00c6d9a0678a84735463
* Merge pull request #16728 from dundargoc/refactor/remove-unused-macrosBjörn Linse2021-12-30
|\ | | | | refactor: remove unused macros
| * refactor: remove unused macrosDundar Göc2021-12-30
| | | | | | | | Closes #13505
* | Merge pull request #16373 from zeertzjq/terminal-mouse-release-forwardBjörn Linse2021-12-28
|\ \ | | | | | | fix(terminal): correctly forward mouse events
| * | fix(terminal): correctly forward mouse eventszeertzjq2021-12-27
| | |
* | | Merge pull request #16752 from gpanders/lua-user-commandsBjörn Linse2021-12-28
|\ \ \ | | | | | | | | feat(api): implement nvim_{add,del}_user_command
| * | | feat(api): implement nvim_{add,del}_user_commandGregory Anders2021-12-28
| | | | | | | | | | | | | | | | | | | | Add support for adding and removing custom user commands with the Nvim API.
* | | | chore: fix typos (#16506)dundargoc2021-12-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com> Co-authored-by: Alef Pereira <ealefpereira@gmail.com> Co-authored-by: AusCyber <willp@outlook.com.au> Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
* | | | chore: fix compiler warning for multi-line comment (#16812)zeertzjq2021-12-28
| | | |
* | | | vim-patch:a4d131d11052 (#16811)Christian Clason2021-12-28
| | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/a4d131d11052cafcc5baad2273ef48e0dd4d09c5
* | | | vim-patch:8.2.3914 (#16808)dundargoc2021-12-28
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | * vim-patch:8.2.3914: various spelling mistakes in comments Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes vim/vim#9416) https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673 Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | | Merge pull request #16805 from clason/vim-8.2.3905Christian Clason2021-12-27
|\ \ \ | | | | | | | | vim-patch:8.2.{3905,3909}: Dockerfile, Containerfile using prefix name not recognized
| * | | vim-patch:8.2.3909: Containerfile using prefix name not recognizedChristian Clason2021-12-27
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Containerfile using prefix name not recognized. Solution: Recognize Containerfile.*. https://github.com/vim/vim/commit/bbdd3fb804bf69684f7b0f49d3c0a0b039daec02
| * | | vim-patch:8.2.3905: Dockerfile using prefix name not recognizedChristian Clason2021-12-27
|/ / / | | | | | | | | | | | | | | | Problem: Dockerfile using prefix name not recognized. Solution: Recognize Dockerfile.*. (closes vim/vim#9410) https://github.com/vim/vim/commit/c88ac94a0bdc70012558813404821fe077f1de20
* | | Merge pull request #16799 from bfredl/nohlsplashBjörn Linse2021-12-27
|\ \ \ | |/ / |/| | fix(api): nvim__set_hl_ns causes extra redraws
| * | fix(api): nvim__set_hl_ns causes extra redrawsBjörn Linse2021-12-26
|/ /
* | fix(uri): change scheme pattern to not include the comma character (#16797)Dmytro Meleshko2021-12-26
| |
* | Merge pull request #16596 from ↵Björn Linse2021-12-26
|\ \ | | | | | | | | | | | | dm1try/do_not_leave_terminal_mode_after_mouse_activation do not leave Terminal mode after entering to it using a mouse
| * | fix(terminal): ignore left-release mouse actiondm1try2021-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | if it is not proccesed by the terminal program to prevent leaving Terminal mode after using a mouse for window switching closes #9483 closes #8691
* | | Merge pull request #16630 from kylo252/unused-includesBjörn Linse2021-12-26
|\ \ \ | | | | | | | | refactor(build): remove unused includes
| * | | refactor(build): remove unused includeskylo2522021-12-12
| | | |
* | | | Merge pull request #16792 from zeertzjq/ins-lastc-k-eventBjörn Linse2021-12-26
|\ \ \ \ | | | | | | | | | | fix: do not save K_EVENT as lastc in Insert mode
| * | | | fix: do not save K_EVENT as lastc in Insert modezeertzjq2021-12-26
| | | | | | | | | | | | | | | | | | | | I'm also gonna move some other K_EVENT-related tests to vim_spec.lua
* | | | | Merge pull request #16788 from jamessan/strptime-fixJames McCoy2021-12-26
|\ \ \ \ \ | | | | | | | | | | | | fix(msgpack#strptime): use calendar.timegm to get seconds since epoch
| * | | | | fix(msgpack#strptime): use calendar.timegm to get seconds since epochJames McCoy2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | datetime.datetime.timestamp does not exist on Windows and datetime.datetiem.strftime('%s') is not supported, since '%s' is a POSIX format. Instead, use the recommended `calendar.timegm(obj.utctimetuple())`.
* | | | | | vim-patch:partial fa3b72348d88 (#16780)Christian Clason2021-12-26
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2 omit doc/eval.txt (needs 8.2.3864) doc/map.txt (needs 8.2.3619) menu.vim (needs 8.2.0413)
* | | | | Merge pull request #16774 from zeertzjq/vim-8.2.2468Jan Edmund Lazo2021-12-25
|\ \ \ \ \ | | | | | | | | | | | | vim-patch:8.2.2468: not easy to get the full command name from a shortened one
| * | | | | fixup! vim-patch:8.2.2468: not easy to get the full command name from a ↵zeertzjq2021-12-26
| | | | | | | | | | | | | | | | | | | | | | | | shortened one
| * | | | | vim-patch:partial:6c391a74fe90zeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7
| * | | | | vim-patch:partial:6aa57295cfbezeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/6aa57295cfbe8f21c15f0671e45fd53cf990d404
| * | | | | vim-patch:8.2.2468: not easy to get the full command name from a shortened onezeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Not easy to get the full command name from a shortened one. Solution: Add fullcommand(). (Martin Tournoij, closes vim/vim#7777) https://github.com/vim/vim/commit/038e09ee7645731de0296d255aabb17603276443
* | | | | | vim-patch:8.1.1412: test 30 is old style (#16768)Volodymyr Kot2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Test 30 is old style. Solution: Turn it into a new style test. (Yegappan Lakshmanan, closes vim/vim#4440) https://github.com/vim/vim/commit/72fcf07b0639b49be3305de141d777baa9c965a0
* | | | | | Merge pull request #16618 from zeertzjq/vim-8.2.3780Jan Edmund Lazo2021-12-25
|\ \ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.2.{3780,3784}: ":cd" works differently on MS-Windows
| * | | | | | vim-patch:partial:0e6adf8a29d5zeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471
| * | | | | | vim-patch:8.2.3784: the help for options is outdatedzeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The help for options is outdated. Solution: Include all the recent changes. https://github.com/vim/vim/commit/7b1463bca36d16e70afd6779e4fbb30761048c91 This is the only applicable hunk.
| * | | | | | vim-patch:8.2.3780: ":cd" works differently on MS-Windowszeertzjq2021-12-25
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ":cd" works differently on MS-Windows. Solution: Add the 'cdhome' option. (closes vim/vim#9324) https://github.com/vim/vim/commit/29f3a4591528130fded3fe1d63d74bcf22ab4f6c
* | | | | | Merge pull request #16767 from zeertzjq/vim-8.2.3879Jan Edmund Lazo2021-12-25
|\ \ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.2.{3879,3882}
| * | | | | | vim-patch:8.2.3882: more duplicated code in f_getreginfo()zeertzjq2021-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: More duplicated code in f_getreginfo(). Solution: Also use getreg_get_regname(). (closes vim/vim#9398) https://github.com/vim/vim/commit/d3f00f54bf955bd01767db3a0af25866bc112ec7
| * | | | | | vim-patch:8.2.3879: getreg() and getregtype() contain dead codezeertzjq2021-12-24
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: getreg() and getregtype() contain dead code. Solution: Remove the needless check. (closes vim/vim#9392) Also refactor to put common code in a shared function. https://github.com/vim/vim/commit/51e64b2789eb7e60f7c5892a43426ab4ec1a54aa
* | | | | | Merge pull request #16705 from zeertzjq/vim-8.2.2508Jan Edmund Lazo2021-12-25
|\ \ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.2.{2508,2641,3846}
| * | | | | | vim-patch:8.2.3846: no error when using control character for 'lcs' or 'fcs'zeertzjq2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: No error when using control character for 'lcs' or 'fcs'. Solution: Use char2cells() to check the width. (closes vim/vim#9369) https://github.com/vim/vim/commit/60618c8f1a7ea55452837a446525272142286471
| * | | | | | vim-patch:8.2.2641: display test fails because of lacking redrawzeertzjq2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Display test fails because of lacking redraw. Solution: Add a redraw command. https://github.com/vim/vim/commit/2cec027af461095f96dec3bfd036c267f790b0f4
| * | | | | | vim-patch:8.2.2508: cannot change the character displayed in non existing lineszeertzjq2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot change the character displayed in non existing lines. Solution: Add the "eob" item to 'fillchars'. (closes vim/vim#7832, closes vim/vim#3820) https://github.com/vim/vim/commit/a98f8a230596d8fb44cc68321de72980a21428cb Nvim has already implemented this feature, so this just ports the tests and docs.
* | | | | | | vim-patch:8.2.3883: crash when switching to other regexp engine fails (#16773)zeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when switching to other regexp engine fails. Solution: Check for regprog being NULL. https://github.com/vim/vim/commit/5937c7505f444dd896f336fa0119a93a55ebe9a2