aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* fix(lsp): fix get_active_clients bufnr parameter (#21366)Mathias Fußenegger2022-12-09
| | | Follow up to https://github.com/neovim/neovim/pull/21337
* fix(lsp): correct some type annotations (#21365)Mathias Fußenegger2022-12-09
|
* vim-patch:9.0.1038: function name does not match what it is used for (#21359)zeertzjq2022-12-09
| | | | | | Problem: Function name does not match what it is used for. Solution: Include the modifier in the name. (closes vim/vim#11679) https://github.com/vim/vim/commit/ffa4e9b43a3d6d7f412f54637a4b1076ed2bc2f4
* fix(lsp): followup fixes for semantic tokens support (#21357)jdrouhard2022-12-09
| | | | | | | | | | | | | | | | 1. The algorithm for applying edits was slightly incorrect. It needs to preserve the original token list as the edits are applied instead of mutating it as it iterates. From the spec: Semantic token edits behave conceptually like text edits on documents: if an edit description consists of n edits all n edits are based on the same state Sm of the number array. They will move the number array from state Sm to Sm+1. 2. Schedule the semantic token engine start() call in the client._on_attach() function so that users who schedule_wrap() their config.on_attach() functions (like nvim-lspconfig does) can still disable semantic tokens by deleting the semanticTokensProvider from their server capabilities.
* vim-patch:9.0.0238: Shift-Tab shows matches on cmdline when 'wildmenu' is ↵zeertzjq2022-12-09
| | | | | | | | | | | | off (#21355) Problem: Shift-Tab shows matches on cmdline when 'wildmenu' is off. Solution: Only show matches when 'wildmode' contains "list". (closes vim/vim#10951) https://github.com/vim/vim/commit/300175fd7f874be78826a00f5cb60a7ec2f20655 Code change has already been ported. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* test: convert another test in test_matchadd_conceal.vim to Lua (#21353)zeertzjq2022-12-09
|
* vim-patch:8.2.4387: command line completion doesn't always work properly ↵zeertzjq2022-12-09
| | | | | | | | | | | (#21352) Problem: Command line completion doesn't always work properly. Solution: Adjust triggering after a "|". Add more tests. (Yegappan Lakshmanan, closes vim/vim#9779) https://github.com/vim/vim/commit/e3846cf1ebdc4af0b39885153b4703f71a9b919e Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* Merge pull request #21350 from zeertzjq/vim-8.2.4366zeertzjq2022-12-09
|\ | | | | vim-patch:8.2.{4366,4376}: cmdline completion tests
| * vim-patch:8.2.4376: not enough tests for command line completionzeertzjq2022-12-09
| | | | | | | | | | | | | | | | | | Problem: Not enough tests for command line completion. Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#9771) https://github.com/vim/vim/commit/9773db6f9bce7a6f063e23179976d7825ace4d72 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
| * vim-patch:8.2.4366: not enough tests for command line completionzeertzjq2022-12-09
|/ | | | | | | | | Problem: Not enough tests for command line completion. Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#9760) https://github.com/vim/vim/commit/4d03d870007c593bce2cfa8d0a6597ca3a20fa35 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* test(old): change $TMPDIR from Xtest-tmpdir to X-test-tmpdir (#21346)zeertzjq2022-12-09
| | | | I've noticed a patch 8.2.4376 that uses more Xtest directories. Change $TMPDIR to X-test-tmpdir to avoid more future divergence.
* Merge pull request #21348 from zeertzjq/vim-9.0.1036zeertzjq2022-12-09
|\ | | | | vim-patch:9.0.1036: undo misbehaves when writing from an insert mode mapping
| * test(undo_spec): add more tests for writing in Insert modezeertzjq2022-12-09
| |
| * vim-patch:9.0.1036: undo misbehaves when writing from an insert mode mappingzeertzjq2022-12-09
|/ | | | | | | | | Problem: Undo misbehaves when writing from an insert mode mapping. Solution: Sync undo when writing. (closes vim/vim#11674) https://github.com/vim/vim/commit/3f8f82772313af9f2417b06651f30988b63e1c96 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* docs: dark/light color/accessibilty pass for generated html docs #21345Dave Lage2022-12-08
|
* fix(chansend): sending lines to terminal in reverse order on Windows #19315Enan Ajmain2022-12-08
| | | | | | | Problem: `chansend()` on Windows sends lines in reverse order. Cause: Using \n instead of \r\n for newlines on Windows. Solution: on Windows, use CRLF newline characters. Fixes #18501
* Merge pull request #21338 from zeertzjq/vim-9.0.1030zeertzjq2022-12-09
|\ | | | | vim-patch:9.0.{1030,1032}: using freed memory with the cmdline popup menu
| * vim-patch:9.0.1032: test fails when terminal feature is missingzeertzjq2022-12-09
| | | | | | | | | | | | | | | | | | Problem: Test fails when terminal feature is missing. Solution: Use CheckRunVimInTerminal. https://github.com/vim/vim/commit/b9603f6498e5637e111bd1dca0eab88c8dd0f99b Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * vim-patch:9.0.1030: using freed memory with the cmdline popup menuzeertzjq2022-12-09
|/ | | | | | | | | Problem: Using freed memory with the cmdline popup menu. Solution: Clear the popup menu when clearing the matches. (closes vim/vim#11677) https://github.com/vim/vim/commit/038e6d20e680ce8c850d07f6b035c4e1904c1201 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* Merge pull request #21100 from jdrouhard/lsp_semantic_tokensGregory Anders2022-12-08
|\ | | | | LSP: semantic tokens support
| * feat(lsp): initial support for semantic token highlightingJohn Drouhard2022-12-08
| | | | | | | | | | | | * credit to @smolck and @theHamsta for their contributions in laying the groundwork for this feature and for their work on some of the helper utility functions and tests
| * refactor(test): create an lsp-specific helpers.lua fileJohn Drouhard2022-12-08
|/ | | | * move the code for creating fake rpc servers there
* feat(treesitter): add 'lang' option to show_tree() (#21341)Gregory Anders2022-12-08
| | | | This is necessary for now to support filetypes that use a parser with a different name (e.g. the "terraform" filetype uses the "hcl" parser).
* feat(treesitter): add vim.treesitter.show_tree() (#21322)Gregory Anders2022-12-08
| | | | | | | Add a "show_tree" function to view a textual representation of the nodes in a language tree in a window. Moving the cursor in the window highlights the corresponding text in the source buffer, and moving the cursor in the source buffer highlights the corresponding nodes in the window.
* vim-patch:86b4816766d9 (#21314)Christian Clason2022-12-08
| | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/86b4816766d976a7ecd4403eca1f8bf6b4105800 vim-patch:9.0.1029: autoload directory missing from distribution Problem: Autoload directory missing from distribution. Solution: Add the autoload/zig directory to the list of distributed files. https://github.com/vim/vim/commit/84dbf855fb2d883481f74ad0ccf3df3f8837e6bf Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.1634: loop to handle keys for the command line is too long ↵zeertzjq2022-12-08
| | | | | | | | | (#21340) Problem: Loop to handle keys for the command line is too long. Solution: Move a few more parts to separate functions. (Yegappan Lakshmanan, closes vim/vim#6895) https://github.com/vim/vim/commit/9c929713b7588f2e44a1533809d2ba0bbd2631be
* refactor(lsp): remove deprecated vim.lsp.buf_get_clients calls (#21337)Raphael2022-12-08
|
* test(lsp): call clear() before willSave tests (#21336)zeertzjq2022-12-08
| | | Otherwise these two tests cannot run alone and may fail on CI.
* vim-patch:8.2.3564: invalid memory access when scrolling without valid ↵zeertzjq2022-12-08
| | | | | | | | | | | | | | screen (#21335) vim-patch:8.2.3564: invalid memory access when scrolling without valid screen Problem: Invalid memory access when scrolling without a valid screen. Solution: Do not set VALID_BOTLINE in w_valid. https://github.com/vim/vim/commit/777e7c21b7627be80961848ac560cb0a9978ff43 Remove -Z flag when using RunVim(). Co-authored-by: Bram Moolenaar <Bram@vim.org>
* docs(lua): add guide to using Lua in Neovim (#21137)dundargoc2022-12-08
| | | | | | | | Add introductory guide explaining how to use Lua in Neovim: where to put Lua files, how to set variables and options, how to create mappings, autocommands, and user commands. Adapted with kind permission from https://github.com/nanotee/nvim-lua-guide
* feat(lsp): support willSave & willSaveWaitUntil capability (#21315)Mathias Fußenegger2022-12-08
| | | | | `willSaveWaitUntil` allows servers to respond with text edits before saving a document. That is used by some language servers to format a document or apply quick fixes like removing unused imports.
* vim-patch:9.0.1026: type of w_last_topfill is wrong (#21332)zeertzjq2022-12-08
| | | | | | Problem: type of w_last_topfill is wrong. Solution: Use "int" instead of "linenr_T". (closes vim/vim#11670) https://github.com/vim/vim/commit/2e613453eeeac3ef3405478c33775dd77d135bc7
* vim-patch:9.0.1025: WinScrolled is not triggered when filler lines change ↵zeertzjq2022-12-07
| | | | | | | | | | | (#21325) Problem: WinScrolled is not triggered when filler lines change. Solution: Add "topfill" to the values that WinScrolled triggers on. (closes vim/vim#11668) https://github.com/vim/vim/commit/3fc84dc2c7efecd7c14ce341cd777475058936fd Cherry-pick StopVimInTerminal() from patch 9.0.1010.
* docs(treesitter): use full function names in tags (#21321)Gregory Anders2022-12-07
|
* Merge pull request #21324 from zeertzjq/vim-8.2.1768zeertzjq2022-12-07
|\ | | | | vim-patch:8.2.1768,0e6adf8a29d5,fa3b72348d88
| * vim-patch:fa3b72348d88zeertzjq2022-12-07
| | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * vim-patch:0e6adf8a29d5zeertzjq2022-12-07
| | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * vim-patch:8.2.1768: cannot use the help menu from a terminal windowzeertzjq2022-12-07
|/ | | | | | | | | Problem: Cannot use the help menu from a terminal window. Solution: Add ":tlnoremenu" commands. (Yee Cheng Chin, closes vim/vim#7023) https://github.com/vim/vim/commit/b45cd36bd90f71e4a35b1ef1f75a3bedef6d8bac Co-authored-by: Bram Moolenaar <Bram@vim.org>
* fix(float): fix crash with bufpos and non-existent window (#21319)zeertzjq2022-12-07
|
* test: add more tests for float window bufpos (#21318)zeertzjq2022-12-07
|
* fix(events): save v:event for cmdline autocommands separately (#21316)zeertzjq2022-12-07
|
* docs(lua): correct vim.spell.check example (#21311)Jack Rowlingson2022-12-06
|
* ci(news): fetch full history (#21312)dundargoc2022-12-06
| | | | We seem to need the parent commit of the earliest PR commit in order to perform common git functionality to check which files were changed.
* vim-patch:9.0.1017: test for srand() fails on MS-Windows (#21308)zeertzjq2022-12-06
| | | | | | | | Problem: Test for srand() fails on MS-Windows. Solution: Do not expect the same result a second time. https://github.com/vim/vim/commit/9dacdb1d56ee0f9272f3fc956a12f15f84ffb205 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.1622: loop to handle keys for the command line is too long ↵zeertzjq2022-12-06
| | | | | | | | | | (#21307) Problem: Loop to handle keys for the command line is too long. Solution: Move code to functions. (Yegappan Lakshmanan, closes vim/vim#6880) https://github.com/vim/vim/commit/2f3cd2e4ec5617e3697ec4f4c6e1c9449061ad30 Use the command line state as only argument instead.
* vim-patch:8.2.4393: possible number overflow with nested folds (#21305)zeertzjq2022-12-06
| | | | | | | | Problem: Possible number overflow with nested folds. Solution: Avoid a negative line number. https://github.com/vim/vim/commit/6b43471da4516e8f6c17e5dc2eccbb9d0ba2e0a4 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* version.c: update [skip ci] (#20958)github-actions[bot]2022-12-06
| | | | | | | | Co-authored-by: marvim <marvim@users.noreply.github.com> N/A patches: vim-patch:8.1.0820: test for sending large data over channel sometimes fails vim-patch:8.1.1133: compiler warning for uninitialized struct member vim-patch:8.1.1699: highlight_ga can be local instead of global
* vim-patch:9.0.1015: without /dev/urandom srand() seed is too predictable ↵zeertzjq2022-12-06
| | | | | | | | | | | (#21303) Problem: Without /dev/urandom srand() seed is too predictable. Solution: Use micro seconds and XOR with process ID. (Yasuhiro Matsumoto, closes vim/vim#11656) https://github.com/vim/vim/commit/f0a9c004825ab686270ee57260652cce25e61049 Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
* Merge pull request #21302 from zeertzjq/vim-8.2.3193zeertzjq2022-12-06
|\ | | | | vim-patch:8.2.{3193,4204,4389},9.0.{1011,1016}: screenpos() fixes
| * vim-patch:9.0.1016: screenpos() does not count filler lines for diff modezeertzjq2022-12-06
| | | | | | | | | | | | | | | | | | Problem: screenpos() does not count filler lines for diff mode. Solution: Add filler lines. (closes 11658) https://github.com/vim/vim/commit/1cb16c3a20a9d17df1a8dc3813ef64dc98e42637 Co-authored-by: Bram Moolenaar <Bram@vim.org>