aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| | * | | | | | | vim-patch:9.1.0120: hard to get visual region using Vim scriptzeertzjq2024-02-23
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: hard to get visual region using Vim script Solution: Add getregion() Vim script function (Shougo Matsushita, Jakub Łuczyński) closes: vim/vim#13998 closes: vim/vim#11579 https://github.com/vim/vim/commit/3f905ab3c4f66562f4a224bf00f49d98a0b0da91 Cherry-pick changes from patch 9.1.0122, with :echom instead of :echow. Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl>
| * | | | | | | feat(treesitter): add folding for `InspectTree` (#27518)再生花2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the InspectTree buffer is now a valid tree-sitter query tree, we can use the bundled fold queries to have folding for the tree.
| * | | | | | | fix(defaults): make terminal autoclose not block other events (#27581)Evgeni Chasnovski2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When terminal is autocloses, it blocks other events, like `BufEnter`. Solution: Use `nested = true`.
| * | | | | | | vim-patch:20d61e1b94e5Christian Clason2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | runtime(java): add syntax support for Java switch expressions (#9124) https://github.com/vim/vim/commit/20d61e1b94e5ac571b3a313765517582f86616f3 Co-authored-by: Nick Hanley <nicholasjhanley@gmail.com>
| * | | | | | | fix(defaults): remove tmux background detection passthrough (#27571)zeertzjq2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is now a new tmux 3.4 release that queries background color from the parent terminal if background is not set in tmux, so removing the passthrough still works when background is not set in tmux, and fixes the incorrect detection when background is set in tmux.
| * | | | | | | docs(builtin): show tag at first line with multiple signatures (#27577)zeertzjq2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When a function has multiple signatures, putting its tag at the last one may make one think that's its only signature. Solution: When a function has multiple signatures, put its tag at the first one.
| * | | | | | | build(deps): bump luv to v1.48.0-0Christian Clason2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: Use os_uname() to check for Linux by @cryptomilk in #686 * docs: typo in a table field name by @Bilal2453 in #689 * docs: most new_handle methods won't return fail by @Bilal2453 in #683 * test-tty: Don't depend on stdin/stdout handle type by @squeek502 in #688 * Bump/libuv by @zhaozg in #690 * Annotate .gitmodules with branch and tag by @creationix in #693
| * | | | | | | vim-patch:e8f6af609178Christian Clason2024-02-22
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | runtime(tmux): Update tmux syntax (#14065) https://github.com/vim/vim/commit/e8f6af60917862d04a82efb9e900200fd36f798d Co-authored-by: Eric Pruitt <eric.pruitt@gmail.com>
| * | | | | | fix(lua): make highlight.on_yank use win-local highlight (#27349)altermo2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, highlight.on_yank() does buffer-local highlighting, this PR makes it window scoped. Also fix the problem that when yanking in a buffer, moving to another buffer, and yanking before the original buffer highlight disappears, the original buffer highlight won't disappear on timeout.
| * | | | | | refactor(terminal): rename confusing variable name "rv" (#27573)zeertzjq2024-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that terminal_open() no longer returns a value, the variable name "rv" is confusing, and "term" makes more sense anyway.
| * | | | | | fix(api): don't leak memory with nvim_win_get_ns (#27570)zeertzjq2024-02-22
| | | | | | |
| * | | | | | fix(extmarks): redraw properly with scoped inline virt_text (#27569)zeertzjq2024-02-22
| | | | | | |
| * | | | | | build(deps): bump tree-sitter to v0.21.0Christian Clason2024-02-21
| | | | | | |
| * | | | | | test(treesitter): fix obsolete predicatesChristian Clason2024-02-21
| | | | | | |
| * | | | | | Merge pull request #27361 from altermo/buf-win-local-extmarksbfredl2024-02-21
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | feat(extmark): window scoped namespace
| | * | | | | | feat(extmark): window scoped extmarkaltermo2024-02-21
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com>
| * | | | | | docs: remove mention of foreground/background/special keys in nvim_set_hl ↵rktjmp2024-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#27558) To align the output of `nvim_get_hl` with its documentation -- which points to `nvim_set_hl`, remove mentions of the keys `foreground`, `background` and `special`. The long keys are are still supported (via fallback checks inside `dict2hlattrs`), but the `fg`, `bg` and `sp` keys are preferenced.
| * | | | | | fix(lsp): add parentheses to generated union array types (#27560)Maria José Solano2024-02-21
| | | | | | |
| * | | | | | Merge pull request #27552 from bfredl/apiallocbfredl2024-02-21
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | refactor(api): make freeing of return-value opt-in instead of opt out.
| | * | | | | | build: fix uncrustifydundargoc2024-02-21
| | | | | | | |
| | * | | | | | refactor(api): make freeing of return-value opt-in instead of opt outbfredl2024-02-21
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As only a few API functions make use of explicit freeing of the return value, make it opt-in instead. The arena is always present under the hood, so `Arena *arena` arg now doesn't mean anything other than getting access to this arena. Also it is in principle possible to return an allocated value while still using the arena as scratch space for other stuff (unlikely, but there no reason to not allow it).
| * | | | | | vim-patch:f9ca139e3aa1 (#27554)zeertzjq2024-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | runtime(misc): announce adoption of various runtime files https://github.com/vim/vim/commit/f9ca139e3aa12dd03177ebba5eedcee4f0836f27 Co-authored-by: Christian Brabandt <cb@256bit.org>
| * | | | | | vim-patch:ef387c062bb1 (#27553)zeertzjq2024-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | runtime(filetype): Modula-2 files with priority not detected (vim/vim#14055) Problem: Modula-2 files with a specified priority are not detected. Solution: Match the priority syntax in module header lines when performing heuristic content detection. Disable the :defcompile debug line. This was accidentally left enabled in commit 68a8947. https://github.com/vim/vim/commit/ef387c062bb1966187d3f307d697d80162051a0d Co-authored-by: dkearns <dougkearns@gmail.com>
| * | | | | | fix(vim.ui.open): use explorer.exe instead of wslview #26947Vu Nhat Chuong2024-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: `vim.ui.open` uses `wslview`, which is slow and require a package from external PPA: https://wslutiliti.es/wslu/install.html#ubuntu Solution: Use `explorer.exe` instead. WSL supports it by default: https://learn.microsoft.com/en-us/windows/wsl/filesystems#view-your-current-directory-in-windows-file-explorer
| * | | | | | Merge pull request #27541 from bfredl/exprarenabfredl2024-02-20
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | refactor(api): use an arena for nvim_parse_expression
| | * | | | | | refactor(api): use an arena for nvim_parse_expressionbfredl2024-02-20
| | | | | | | |
| * | | | | | | feat(help): hide filename of "gO" outline using conceal #27547itchyny2024-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Help outlines, invoked by `gO`, displays the help section titles in the location list window. This feature is implemented by setting the buffer lines after opening the window, but this implementation breaks the assumption that the quickfix window texts are consistently constructed by the quickfix list items. I think we can use the conceal feature here. Using conceal here improves interoperability between quickfix plugins, and also simplifies the outline implementation. Originally reported at https://github.com/itchyny/vim-qfedit/issues/12
| * | | | | | | fix(extmarks): priority order of inline and non-inline virt_text (#27532)zeertzjq2024-02-20
| |/ / / / / /
| * | | | | | Merge pull request #27536 from bfredl/bufferarenabfredl2024-02-20
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | refactor(api): reduce temporary allocations when replacing lines
| | * | | | | | refactor(api): reduce temporary allocations when replacing linesbfredl2024-02-20
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The way ml_replace_buf is implemented makes it unfriendly for being used in a loop: every call allocates a scratch buffer for putting the line into the "dirty" state. This then immediately needs to be freed as the next ml_replace_buf and/or ml_append_buf call will flush that buffer. It's better to later pay the price of allocating the scratch buffer only if the line is being immediately edited (likely when using the API to only change one line) with an extra memcpy, than allocating that buffer multiple times every time the API is called. Of course, a separate xmalloc/xfree cycle for each time the dirty line changes is unwanted to begin with. But fixing that is a later refactor.
| * | | | | | Merge pull request #27534 from bfredl/userarenabfredl2024-02-19
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | refactor(api): next PR to make use of the arena
| | * | | | | | refactor(api): use arena for nvim_put and nvim_pastebfredl2024-02-19
| | | | | | | |
| | * | | | | | refactor(api): use arena when listing objectsbfredl2024-02-19
| | | | | | | |
| | * | | | | | refactor(api): use arena for runtime and client infobfredl2024-02-19
| | | | | | | |
| | * | | | | | refactor(api): use an arena for user commandsbfredl2024-02-19
| | | | | | | |
| * | | | | | | build: disable conversion warnings for GCCdundargoc2024-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GCC seems chronically incapable of producing correct and relevant conversion warnings, and will therefore need to be silenced.
| * | | | | | | refactor(lsp): typings for protocol constantsMaria José Solano2024-02-19
| |/ / / / / /
| * | | | | | docs: improve 'tabline' click label docs (#27529)zeertzjq2024-02-19
| | | | | | |
| * | | | | | feat(tabline): middle mouse button now closes tab (#27522)Nacho Nieva2024-02-19
| | | | | | |
| * | | | | | vim-patch:9.1.0115: Using freed memory with full tag stack and user data ↵zeertzjq2024-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#27525) Problem: Using freed memory with full tag stack and user data (Konstantin Khlebnikov) Solution: Clear the user data pointer of the newest entry. (zeertzjq, Konstantin Khlebnikov) fixes: neovim/neovim#27498 closes: vim/vim#14053 https://github.com/vim/vim/commit/c86bff1771ed9c340f8f4433ae5530fd6de97980 Cherry-pick Test_tag_stack() changes from patch 9.0.0767. Co-authored-by: Konstantin Khlebnikov <koct9i@gmail.com>
| * | | | | | Merge pull request #27520 from bfredl/metaarenabfredl2024-02-18
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | refactor(api): use arena for metadata; msgpack_rpc_to_object delenda est
| | * | | | | | refactor(api): use arena for metadata; msgpack_rpc_to_object delenda estbfredl2024-02-18
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: kSDItemHeader is something is _written_ by nvim in the shada file to identify it for debugging purposes outside of nvim. But this data wasn't ever used by neovim after reading the file back, So I removed the parsing of it for now.
| * | | | | | Merge pull request #27511 from bfredl/maparenabfredl2024-02-18
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | refactor(api): use arena for mappings, autocmd, channel info
| | * | | | | | refactor(api): use arena for autocmdsbfredl2024-02-18
| | | | | | | |
| | * | | | | | refactor(api): use arena for channel info and terminal infobfredl2024-02-18
| | | | | | | |
| | * | | | | | refactor(api): use an arena for mappingsbfredl2024-02-18
| | | | | | | |
| * | | | | | | ci(labeler_issue): split on word boundariescasswedson2024-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Splitting it on word boundaries rather than only spaces allows for better detection. The issue labeler previously didn't catch titles such as `treesitter: noisy "Invalid node type" error`. Co-authored-by: casswedson <casswedson@users.noreply.github.com>
| * | | | | | | fix(eval): skip over v:lua properly (#27517)zeertzjq2024-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Error when parsing v:lua in a ternary expression. Solution: Set rettv->v_type for v:lua even if not evaluating.
| * | | | | | | fix(options): don't update curswant for 'winhl' or 'winbl' (#27515)zeertzjq2024-02-18
| | | | | | | |
| * | | | | | | vim-patch:9.1.0114: Setting some options may change curswant (#27514)zeertzjq2024-02-18
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Setting some options changes curswant unnecessarily. Solution: Add a P_HLONLY flag that prevents changing curswant. (zeertzjq) closes: vim/vim#14044 https://github.com/vim/vim/commit/fcaed6a70faf73bff3e5405ada556d726024f866