aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| | * vim-patch:aaaa21b: runtime(doc): Remove wrong help tag CTRL-SHIFT-CRzeertzjq2024-07-06
| | | | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/aaaa21b58f8af2fe923368116f94832df3d273bc Co-authored-by: Christian Brabandt <cb@256bit.org>
| | * vim-patch:6a4afb1: runtime(doc): document further keys that scroll page up/downzeertzjq2024-07-06
| | | | | | | | | | | | | | | | | | | | | | | | fixes: vim/vim#15107 https://github.com/vim/vim/commit/6a4afb1efca1bac5fbc0281804591cf0a52b2d81 Co-authored-by: Christian Brabandt <cb@256bit.org>
| * | feat(lsp): drop fswatch, use inotifywait (#29374)Andreas Schneider2024-07-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch replaces fswatch with inotifywait from inotify-toools: https://github.com/inotify-tools/inotify-tools fswatch takes ~1min to set up recursively for the Samba source code directory. inotifywait needs less than a second to do the same thing. https://github.com/emcrisostomo/fswatch/issues/321 Also it fswatch seems to be unmaintained in the meantime. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
| * | docs(lsp): add examples to lsp-quickstart for completion and autoformatting ↵Gregory Anders2024-07-06
| | | | | | | | | | | | | | | | | | | | | | | | (#29497) Auto-completion and auto-formatting are common (though certainly not universal) features that many users want. We can document how to accomplish this in lsp-quickstart so that users that do want these features can easily find examples of how to configure them.
| * | fix(glob): avoid `subcapture nesting too deep` error (#29520)Zoltán Nyikos2024-07-06
| |/ | | | | | | Use Cmt to evaluate Cond and Elem during match to avoid building the nested capture structure later.
| * vim-patch:9.1.0532: filetype: Cedar files not recognizedChristian Clason2024-07-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: Cedar files not recognized Solution: Detect '*.cedar' files as cedar filetype (Riley Bruins) References: https://github.com/cedar-policy closes: vim/vim#15148 https://github.com/vim/vim/commit/15addb24dd3b2645f5c04d2742ab5eb53444a3a0 Co-authored-by: Riley Bruins <ribru17@hotmail.com>
| * refactor(eval): use uv_random() for init_srand() (#29575)zeertzjq2024-07-05
| | | | | | | | | | N/A patches for version.c: vim-patch:9.1.0518: initialize the random buffer can be improved vim-patch:9.1.0531: resource leak in mch_get_random()
| * fix(treesitter): display fields for anonymous nodes in :InspectTreeRiley Bruins2024-07-05
| |
| * vim-patch:9.1.0524: the recursive parameter in the *_equal functions can be ↵zeertzjq2024-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed (#29572) Problem: the recursive parameter in the *_equal functions can be removed Solution: Remove the recursive parameter in dict_equal(), list_equal() object_equal and tv_equal(). Use a comparison of the static var recursive_cnt == 0 to determine whether or not tv_equal() has been called recursively (Yinzuo Jiang). closes: vim/vim#15070 https://github.com/vim/vim/commit/7ccd1a2e858dbb2ac7fb09971dfcbfad62baa677 Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
| * vim-patch:9.1.0526: Unwanted cursor movement with pagescroll at start of ↵luukvbaal2024-07-05
| | | | | | | | | | | | | | | | | | | | buffer (#29569) Problem: Cursor is moved to bottom of window trying to pagescroll when already at the start of the buffer (Asheq Imran, after v9.1.0357) Solution: Don't move cursor when buffer content did not move. (Luuk van Baal) https://github.com/vim/vim/commit/8ccb89016e4b4b7f87acd1da78486c077350ceef
| * vim-patch:9.1.0525: Right release selects immediately when pum is truncated. ↵zeertzjq2024-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | (#29568) Problem: Right release selects immediately when pum is truncated. Solution: Use pum_height instead of pum_size when checking click row. Don't place it above mouse row when there is more space below. (zeertzjq) fixes: vim/vim#15101 closes: vim/vim#15102 https://github.com/vim/vim/commit/761a420c66402545acd8ee3ffa17c3a1fc3110e4
| * fix(mouse): don't treat click on hsep as click on statusline (#29565)zeertzjq2024-07-05
| | | | | | This allows showing popup menu when right-clicking on hsep or cmdline.
| * vim-patch:9.1.0529: silent! causes following try/catch to not work (#29567)zeertzjq2024-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: silent! causes following try/catch to not work (Malcolm Rowe) Solution: consider emsg_silent in handle_did_throw() and do not abort evaluation flow for :silent! (LemonBoy) The silent! flag causes the evaluation not to be aborted in case of uncaught exceptions, adjust handle_did_throw to take this detail into account. Fixes the long-standing todo.txt item: ``` Problem that a previous silent ":throw" causes a following try/catch not to work. (ZyX, 2013 Sep 28) With examples: (Malcolm Rowe, 2015 Dec 24) Also see vim/vim#8487 for an example. ``` fixes: vim/vim#538 closes: vim/vim#15128 https://github.com/vim/vim/commit/749ba0f6d922b3f6b54a66543c214479492b5a0e Cherry-pick Test_deeply_nested_source() from patch 8.2.5169. Co-authored-by: LemonBoy <thatlemon@gmail.com>
| * vim-patch:9.1.0528: spell completion message still wrong in translations ↵zeertzjq2024-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#29566) Problem: spell completion message still wrong in translations (after 9.1.0512) Solution: Update translation files with the new message (Kyle Kovacs) closes: vim/vim#15113 https://github.com/vim/vim/commit/68f5ceddca2ec2d591b9180020c95bb86bf6d3d2 Co-authored-by: Kyle Kovacs <kkovacs@diconfiberoptics.com>
| * docs: misc (#29410)dundargoc2024-07-05
| | | | | | | | Co-authored-by: Michael Härtl <haertl.mike@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
| * vim-patch:3146d63: runtime(netrw): fix remaining case of register clobberChristian Clason2024-07-04
| | | | | | | | | | | | | | | | | | | | complements 62f7b55c1a4564f8744af9446bc7af47fe16a245 closes: vim/vim#15114 https://github.com/vim/vim/commit/3146d63267664e0a0afdbe14be0cec30e7168a04 Co-authored-by: Enno <Konfekt@users.noreply.github.com>
| * vim-patch:11d5992: runtime(rust): use shiftwidth() in indent scriptChristian Clason2024-07-04
| | | | | | | | | | | | | | | | closes: vim/vim#15138 https://github.com/vim/vim/commit/11d599257310bb95a7d1a3537345ae26f36c6210 Co-authored-by: novenary <novenary@kwak.zip>
| * fix(diagnostic): make docs agree with code (#29561)Peter Aronoff2024-07-04
| | | | | | | | | | | | | | | | | | | | | | Problem: the code and docs for vim.diagnostic.JumpOpts.float send mixed signals about what the default should be. When the option is first set, in the global_diagnostic_options table, the comment clearly says that the default is false. Later in the code, in goto_diagnostic, there's a line that sets the default to true if no default is present. Finally, the docs say that the default is true. Solution: Change the docs to reflect the new default of false and fix the goto_diagnostic function.
| * build(macos): disable deduplication in link stepChristian Clason2024-07-04
| | | | | | | | | | | | | | | | | | Problem: Apple Clang 16 comes with a new deduplication algorithm that is enabled by default in release builds (https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes#New-Features-in-Xcode-16-Beta) which breaks the built nvim binary (locks and spins at 100% CPU). Solution: Disable deduplication on macOS. Tested on Clang 15 as well and seems to make no difference to binary size anyway.
| * vim-patch:2fbcc15: runtime(terraform): Add filetype plugin for terraformChristian Clason2024-07-04
| | | | | | | | | | | | | | | | | | | | | | | | - Adds commentstring property for terraform - Adds comments property for terraform closes: vim/vim#15144 https://github.com/vim/vim/commit/2fbcc15cf93e8eb07d769ce301a33e10560af468 Co-authored-by: Janno Tjarks <janno.tjarks@mailbox.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
| * vim-patch:3d2a996: runtime(dockerfile): enable spellchecking of comments in ↵Christian Clason2024-07-04
| | | | | | | | | | | | | | | | | | | | syntax script closes: vim/vim#15147 https://github.com/vim/vim/commit/3d2a996267758284c85b893401d2e331496eb154 Co-authored-by: Kafva <36083692+Kafva@users.noreply.github.com>
| * vim-patch:2606e77: runtime(doc): rename variable for pandoc markdown supportChristian Clason2024-07-04
| | | | | | | | | | | | | | | | fixes: vim/vim#15141 https://github.com/vim/vim/commit/2606e7718c49fc8221dfff21b36eff632ef668a0 Co-authored-by: Christian Brabandt <cb@256bit.org>
| * build(deps): bump luajit to HEAD - 04dca7911Christian Clason2024-07-04
| |
| * refactor: add assertion for v_blob in tv_ptr() (#29554)zeertzjq2024-07-04
| | | | | | Also add test for using printf() and id() with a Blob.
| * fix(lua): use rawget() to get __call in vim.is_callable() (#29536)Tyler Miller2024-07-04
| | | | | | | | | | Lua 5.1 uses a "raw get" to retrieve `__call` from a metatable to determine if a table is callable. Mirror this behavior in `vim.is_callable()`.
| * fix(runtime): stop treesitter highlight in b:undo_ftplugin (#29533)zeertzjq2024-07-03
| | | | | | | | | | | | It seems that nvim-treesitter stops treesitter highlight when changing filetype, so it makes sense for builtin ftplugins to do this as well. Use :call and v:lua here to allow separation with '|'.
| * test: starting and stopping treesitter highlight (#29546)zeertzjq2024-07-03
| |
| * fix(treesitter): ensure syntaxset augroup exists (#29542)zeertzjq2024-07-03
| | | | | | | | | | | | | | | | Problem: Error when calling vim.treesitter.start() and vim.treesitter.stop() in init.lua. Solution: Ensure syntaxset augroup exists after loading synload.vim.
| * fix(lsp): fallback to `label` for completion items if all others are missing ↵Sebastian Lyng Johansen2024-07-02
| | | | | | | | (#29522)
| * feat(win32): embed executable iconalex-tdrn2024-07-02
| | | | | | | | | | | | | | | | Problem: on windows, the neovim executable (and thus the filetypes associated to open with neovim) has no embedded icon Solution: create a windows resource file pointing to the icon, and add it to the nvim binary target
| * build(deps): fix formatc target on MSVCdundargoc2024-07-02
| | | | | | | | | | | | | | | | Set CMAKE_RUNTIME_OUTPUT_DIRECTORY for CMAKE_ARGS for the uncrustify ExternalProject to point to DEPS_BIN_DIR because the uncrustify cmake sources do not install to DESTDIR/bin under MSVC but to DESTDIR. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
| * fix(runtime): update b:undo_ftplugin in Lua runtime files (#29529)zeertzjq2024-07-01
| | | | | | | | Related to #29506, but adding vim.treesitter.stop() to b:undo_ftplugin doesn't solve the problem yet.
| * feat(jumplist): allow opting out of removing unloaded buffers (#29347)zeertzjq2024-06-30
| | | | | | | | Problem: Cannot opt out of removing unloaded buffers from the jumplist. Solution: Only enable that with "unload" flag in 'jumpoptions'.
| * refactor: remove special handling for lowercase German sharp sdundargoc2024-06-29
| | | | | | | | | | | | utf8proc already defines LATIN CAPITAL LETTER SHARP S (ẞ) to be the uppercase variant of LATIN SMALL LETTER SHARP S (ß), so this special workaround when using `gU` is no longer needed on the neovim side.
| * Merge pull request #29467 from bfredl/shadapack2bfredl2024-06-29
| |\ | | | | | | refactor(shada): don't use msgpack_packer for shada
| | * refactor(shada): don't use msgpack_packer for shadabfredl2024-06-27
| | | | | | | | | | | | | | | Now msgpack-c is never used for packing. The real fun part will be replacing it for unpacking.
| * | refactor: remove special-case conversion for german sharp sdundargoc2024-06-29
| | | | | | | | | | | | | | | The comment "German sharp s is lower case but has no upper case equivalent." is no longer true and is therefore not needed anymore.
| * | refactor: use `vim._with` where possibledundargoc2024-06-28
| | | | | | | | | | | | | | | This mostly means replacing `nvim_buf_call` and `nvim_win_call` with `vim._with`.
| * | refactor: replace utf_convert with utf8proc conversion functionsdundargoc2024-06-28
| | |
| * | build: add utf8proc as dependencydundargoc2024-06-28
| |/ | | | | | | | | | | | | | | | | utf8proc contains all the data which is currently in unicode_tables.generated.h internally, but in quite a different format. Ideally unicode_tables.generated.h should be removed as well so we rely solely on utf8proc. We want to avoid a situation where the possibility of unicode mismatch occurs, e.g a distro using both unicode 12 and unicode 13.
| * Merge pull request #29483 from bfredl/nonbinarybfredl2024-06-27
| |\ | | | | | | refactor(typval)!: remove binary distinction of binary and nonbinary strings
| | * refactor(typval)!: remove distinction of binary and nonbinary stringsbfredl2024-06-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a breaking change which will make refactor of typval and shada code a lot easier. In particular, code that would use or check for v:msgpack_types.binary in the wild would be broken. This appears to be rarely used in existing plugins. Also some cases where v:msgpack_type.string would be used to represent a binary string of "string" type, we use a BLOB instead, which is vimscripts native type for binary blobs, and already was used for BIN formats when necessary. msgpackdump(msgpackparse(data)) no longer preserves the distinction of BIN and STR strings. This is very common behavior for language-specific msgpack bindings. Nvim uses msgpack as a tool to serialize its data. Nvim is not a tool to bit-perfectly manipulate arbitrary msgpack data out in the wild. The changed tests should indicate how behavior changes in various edge cases.
| * | fix(lsp): pre-filter matches on label if filterText is missing (#29491)Mathias Fußenegger2024-06-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although the built-in pum completion mechanism will filter anyway on the next input it is odd if the initial popup shows entries which don't match the current prefix. Using fuzzy match on the label/prefix is compatible with `completeopt+=fuzzy` and also doesn't seem to break postfix snippet cases Closes https://github.com/neovim/neovim/issues/29287
| * | fix(lsp): avoid vim.keymap.del error when stopping a client (#29478)Matt Fellenz2024-06-26
| | |
| * | Merge pull request #29280 from echasnovski/with-owobogodundargoc2024-06-26
| |\ \ | | | | | | | | Add several updates to `vim._with` (tests, granular option contexts, `env` context)
| | * | feat(lua): add `context.env` (environment variables) to `vim._with()`Evgeni Chasnovski2024-06-24
| | | |
| | * | feat(lua): update `vim._with` to allow more granular option contextsEvgeni Chasnovski2024-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: with a single `context.options` there is no way for user to force which scope (local, global, both) is being temporarily set and later restored. Solution: replace single `options` context with `bo`, `go`, `wo`, and `o`. Naming and implementation follows how options can be set directly with `vim.*` (like `vim.bo`, etc.). Options are set for possible target `win` or `buf` context.
| | * | test(lua): cover `vim._with()` with testsEvgeni Chasnovski2024-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: `vim._with()` has many different use cases which are not covered with tests. Solution: cover with tests. Some (many) test cases are intentionally marked as "pending" because they cover cases which don't work as expected at the moment (and fixing them requires specific knowledge of C codebase). Use them as a reference for future fixes. Also some of "can be nested" tests currently might pass only because the tested context doesn't work.
| * | | ci(lintcommit): allow capitalized letter after colon in description (#29480)zeertzjq2024-06-26
| | |/ | |/|
| * | vim-patch:9.1.0516: need more tests for nested dicts and list comparison ↵Yinzuo Jiang2024-06-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#29481) Problem: need more tests for nested dicts and list comparison Solution: Add tests for comparing deeply nested List/Dict values (Yegappan Lakshmanan) closes: vim/vim#15081 https://github.com/vim/vim/commit/88bbdb04c2776ba69b8e5da58051fd94f8842b03 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>