aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* refactor(tests): continue the global highlight definition workbfredl2024-11-08
|
* Merge pull request #31040 from luukvbaal/cmdpreviewcursbfredl2024-11-08
|\ | | | | fix(inccommand): ensure cursor is where it belongs
| * fix(inccommand): ensure cursor is where it belongsLuuk van Baal2024-11-07
| | | | | | | | | | Problem: Inccommand preview callback may flush inaccurate cmdline cursor position. Solution: Ensure cursor is where it belongs when doing command preview.
* | refactor(options): use os_win/os_buf for local options (#31060)zeertzjq2024-11-08
| | | | | | Conversely, don't use them for global options.
* | refactor(options): remove `varp` argument for `set_option` (#31111)Famiu Haque2024-11-08
| | | | | | | | | | | | | | | | Problem: The `varp` argument for `set_option` is extraneous as the option's variable pointer can be retrieved using the option's index and flags. Solution: Remove the `varp` argument for `set_option`
* | test: add test for key following ignored mouse move (#31104)zeertzjq2024-11-07
| |
* | perf(mouse): only generate <MouseMove> for a new cell positon (#31103)errael2024-11-07
| | | | | | | | Problem: Can receive dozens of <MouseMove> events for same cell position. #30965 Solution: Leverage check_multiclick() to detect if cell position is unchanged.
* | fix(test): better management of tmpfilesLewis Russell2024-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When tmpdir is local. The returned values from tmpname may already exist. This can cause problems for tests which pass `create=false` as they may require the file to not exist yet. Solution: When creating tmp names, always remove it to ensure it doesn't exist, and optionally open it if `create~=false` Additionally refactor the tmpname code and flattrn some functions into constants. Also while debugging this issue. It was discovered that `exec_lua()` doesn't report error messages properly. This has been fixed.
* | ci: adjust reviewersdundargoc2024-11-06
| |
* | Merge pull request #31062 from famiu/refactor/options/ff_macrobfredl2024-11-06
|\ \ | | | | | | refactor(options): remove fileformat macros
| * | refactor(options): remove fileformat macrosFamiu Haque2024-11-05
| | |
* | | refactor(options): remove unnecessary call to `find_option()` (#31088)Famiu Haque2024-11-06
| | |
* | | vim-patch:9.1.0839: filetype: leo files are not recognizedChristian Clason2024-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: leo files are not recognized Solution: detect '*.leo' files as leo filetype, include a filetype plugin (Riley Bruins) References: https://github.com/ProvableHQ/leo closes: vim/vim#15988 https://github.com/vim/vim/commit/93f65a4ab8168c766e4d3794607762b52762ef82 Co-authored-by: Riley Bruins <ribru17@hotmail.com>
* | | vim-patch:9.1.0840: filetype: idris2 files are not recognizedChristian Clason2024-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: idris2 files are not recognized Solution: detect '*.idr' files as idris2, '*.lidr' files as lidris2 and '*.ipkg' files as ipkg filetype (Serhii Khoma) closes: vim/vim#15987 https://github.com/vim/vim/commit/c04bc64ba61f2386fafb086b47f16f122a0c779a Co-authored-by: Serhii Khoma <srghma@gmail.com>
* | | vim-patch:59834ba: runtime(matchparen): Add matchparen_disable_cursor_hl ↵Christian Clason2024-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config option Set the "matchparen_disable_cursor_hl" config variable to disable highlighting the cursor with the MatchParen highlighting group. closes: vim/vim#15984 https://github.com/vim/vim/commit/59834ba6df10dc48565bf55ac6c8e8a4aa40210b Co-authored-by: Matteo Landi <matteo@matteolandi.net>
* | | vim-patch:19bc76c: runtime(cook): include cook filetype pluginChristian Clason2024-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | References: https://github.com/cooklang/spec?tab=readme-ov-file#comments closes: vim/vim#15989 https://github.com/vim/vim/commit/19bc76c929a9d3f87d4ea932ba5c540bcd6023ee Co-authored-by: Riley Bruins <ribru17@hotmail.com>
* | | vim-patch:9dadfe7: runtime(debversions): Update Debian versionsChristian Clason2024-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move mantic to unsupported - Reorder names to maintain alphabetic order - Bump date to submit upstream closes: vim/vim#15991 https://github.com/vim/vim/commit/9dadfe7a5205180941dbce3648a00422d32bb63d Co-authored-by: James McCoy <jamessan@jamessan.com>
* | | vim-patch:9.1.0841: tests: still preferring python2 over python3 (#31083)zeertzjq2024-11-04
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: tests: still preferring python2 over python3 Solution: prefer Python 3 when picking a Python program in Vim tests, by checking for the more specific python version first and only when python3 not found, check for the python binary (Yee Cheng Chin) Most OSes have Python 3 mapped to `python3` instead of `python`. Vim tests should prioritize using that instead of Python 2 in case that is still installed on the host system. closes: vim/vim#15986 https://github.com/vim/vim/commit/cef8ab2c75841cee1cd72266aa662fbe54fc0acc Cherry-pick test changes from patch 8.2.{2824,4684}. Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
* | feat(defaults): unimpaired empty line below/above cursor #30984Yochem van Rosmalen2024-11-04
| |
* | feat(options)!: disallow setting hidden options #28400Famiu Haque2024-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: There are three different ways of marking an option as hidden, `enable_if = false`, `hidden = true` and `immutable = true`. These also have different behaviors. Options hidden with `enable_if = false` can't have their value fetched using Vim script or the API, but options hidden with `hidden = true` or `immutable = true` can. On the other hand, options with `hidden = true` do not error when trying to set their value, but options with `immutable = true` do. Solution: Remove `enable_if = false`, remove the `hidden` property for options, and use `immutable = true` to mark an option as hidden instead. Also make hidden option variable pointers always point to the default value, which allows fetching the value of every hidden option using Vim script and the API. This does also mean that trying to set a hidden option will now give an error instead of just being ignored.
* | Merge pull request #30608 from bfredl/cchar2bfredl2024-11-04
|\ \ | | | | | | feat(editor): handle new multibyte sequences in normal mode replacement
| * | feat(editor): handle new multibyte sequences in normal mode replacementbfredl2024-11-04
| | | | | | | | | | | | | | | | | | | | | while the implementation is not tied to screen chars, it is a reasonable expectation to support the same size. If nvim is able to display a multibyte character, it will accept the same character as input, including in normal mode commands like r{char}
* | | feat(lsp): multi-client support for signature_helpLewis Russell2024-11-04
|/ / | | | | | | | | Signatures can be cycled using `<C-s>` when the user enters the floating window.
* | ci: work around flaky python tests (#31063)dundargoc2024-11-03
| | | | | | | | | | It's the same workaround as 88ed9ffcd1c022811ebc8818e153fe94e4741671, which was later removed in f707ce76acb86e064d549dc762f5636af072d3c5 after it turned out to be stable after a while.
* | Merge pull request #31059 from zeertzjq/vim-9.1.0832zeertzjq2024-11-03
|\ \ | | | | | | vim-patch:9.1.{0832,0835}
| * | vim-patch:9.1.0835: :setglobal doesn't work properly for 'ffu' and 'tsrfu'zeertzjq2024-11-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :setglobal doesn't work properly for 'ffu' and 'tsrfu' when the local value is set (after v9.1.0831) Solution: Check os_flags instead of buffer option variable (zeertzjq). closes: vim/vim#15980 https://github.com/vim/vim/commit/6eda269600b5ca952f28e808c662f67e581933d7
| * | vim-patch:9.1.0832: :set doesn't work for 'cot' and 'bkc' after :setlocalzeertzjq2024-11-03
|/ / | | | | | | | | | | | | | | | | Problem: :set doesn't work for 'cot' and 'bkc' after :setlocal. Solution: clear the local flags when using :set (zeertzjq). closes: vim/vim#15981 https://github.com/vim/vim/commit/46dcd84d242db6b053cb5b777c896cede9ad9b27
* | fix(treesitter): close InspectTree/EditQuery window on BufUnload (#31036)zeertzjq2024-11-03
| | | | | | | | | | | | Problem: The window opened :InspectTree or :EditQuery isn't closed when the source buffer is unloaded, even though it is closed when the buffer is hidden. Solution: Also close the window on BufUnload.
* | vim-patch:9.1.0831: 'findexpr' can't be used as lambad or Funcref (#31058)zeertzjq2024-11-03
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'findexpr' can't be used for lambads (Justin Keyes) Solution: Replace the findexpr option with the findfunc option (Yegappan Lakshmanan) related: vim/vim#15905 closes: vim/vim#15976 https://github.com/vim/vim/commit/a13f3a4f5de9c150f70298850e34747838904995 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* | vim-patch:9.1.0830: using wrong highlight group for spaces for popupmenu ↵zeertzjq2024-11-03
| | | | | | | | | | | | | | | | | | | | | | | | | | (#31054) Problem: using wrong highlight group for spaces for popupmenu Solution: use original attribute instead of combined attributed (glepnir) closes: vim/vim#15978 https://github.com/vim/vim/commit/bc10be7a4060748ed1876ab91cf53a2a8701ac13 Co-authored-by: glepnir <glephunter@gmail.com>
* | vim-patch:a95d6a3: runtime(doc): remove stray sentence in pi_netrw.txt (#31053)zeertzjq2024-11-03
| | | | | | | | | | | | | | closes: vim/vim#15971 https://github.com/vim/vim/commit/a95d6a3d641dd065cccb1e76863dd3450ee5ce04 Co-authored-by: S. B. Tam <cpplearner@outlook.com>
* | fix(health): better layout of vim.treesitter health checkChristian Clason2024-11-02
| | | | | | | | | | | | | | | | Problem: Long lists of available parsers make it hard to see WASM status. Solution: Add separate headings for "treesitter features" (ABI, WASM) and "treesitter parsers". Also add minimum supported ABI version.
* | vim-patch:9.1.0826: filetype: sway files are not recognizedChristian Clason2024-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: sway files are not recognized Solution: detect '*.sw' files as sway filetype, include a filetype plugin (Riley Bruins) References: https://github.com/FuelLabs/sway. Comments taken from their syntax documentation. File extension taken from the same documentation/GitHub's own recognition of these file types closes: vim/vim#15973 https://github.com/vim/vim/commit/84b5b1c660beb2f9e27de70687e41d39a023ae81 Co-authored-by: Riley Bruins <ribru17@hotmail.com>
* | vim-patch:d181baf: runtime(typst): synchronize updates from the upstream ↵Christian Clason2024-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | typst.vim 2 commits included from the upstream: - https://github.com/kaarmu/typst.vim/commit/2a4a0e0662f2f882403af7200b4249c564a621ab - https://github.com/kaarmu/typst.vim/commit/50e89f481102d5c9ef6990b9f8086c0c7d64bff6 https://github.com/vim/vim/commit/d181bafd0bb53f3caaf15a95a329a31d8208206b Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
* | refactor(options): remove `get_option_value_strict`Famiu Haque2024-11-02
|/ | | | | | Problem: `get_option_value_for` can perfectly replace `get_option_value_strict`, making the latter redundant. Solution: Remove `get_option_value_strict`
* fix(lua): show stacktrace for error in vim.on_key() callback (#31021)zeertzjq2024-11-02
|
* vim-patch:26113e5: runtime(doc): Include netrw-gp in TOC (#31032)zeertzjq2024-11-02
| | | | | | | closes: vim/vim#7627 https://github.com/vim/vim/commit/26113e5ae3c4762ab718d5f006afa71f67e6f459 Co-authored-by: Ernesto Elsäßer <ernesto.elsaesser@me.com>
* refactor(options): unify `put_set(num|bool|string)` (#30993)Famiu Haque2024-11-02
| | | | | | | | | | | | | Problem: There are three separate functions for printing the `:set` command for an setting an option to a file descriptor. These functions are used when creating the session file for an option. Having a function for each type increase code duplication and also makes it harder to add logic for new option types. Solution: Replace `put_set(num|bool|string)` with a single `put_set` function which works for all option types, this reduces code duplication and also makes it trivial to add support for more option types in the future.
* vim-patch:b5e7da1: runtime(doc): mention 'iskeyword' at :h charclass() (#31026)zeertzjq2024-11-01
| | | | | | | fixes: vim/vim#15965 https://github.com/vim/vim/commit/b5e7da1f27241f7d770d342009e2fb443e45e6ce Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:9.1.0824: too many strlen() calls in register.c (#31022)zeertzjq2024-11-01
| | | | | | | | | | | Problem: too many strlen() calls in register.c Solution: refactor code, add string_T struct to keep track of string lengths (John Marriott) closes: vim/vim#15952 https://github.com/vim/vim/commit/79f6ffd388299ef3b1c95cbe658785e6e66df144 Co-authored-by: John Marriott <basilisk@internode.on.net>
* feat(lsp)!: remove client-server handlers from vim.lsp.handlersLewis Russell2024-11-01
| | | | | | | | | | - Partition the handlers in vim.lsp.handlers as: - client to server response handlers (RCS) - server to client request handlers (RSC) - server to client notification handlers (NSC) Note use string indexes instead of protocol.methods for improved typing in LuaLS (tip: use hover on RCS, RSC or NSC).
* fix(lsp): hover border type can be string (#31013)nikolightsaber2024-11-01
| | | | | Border type can also be a string as defined in `api-win_config` Co-authored-by: Nikolai Devolder <nikolai.devolder@yamabiko.eu>
* feat(lua): allow vim.on_key() callback to consume the key (#30939)errael2024-11-01
|
* Merge pull request #31011 from lewis6991/refactor/loaderLewis Russell2024-10-31
|\
| * refactor(loader): format annotationsLewis Russell2024-10-31
| |
| * refactor(loader): use the term stat instead of hashLewis Russell2024-10-31
| |
| * refactor(loader): remove Loader table and use localsLewis Russell2024-10-31
| |
| * refactor(loader): rename typesLewis Russell2024-10-31
| |
| * refactor(loader): inline Loader.load into Loader.loadfileLewis Russell2024-10-31
| |
| * refactor(loader): simplify Loader.loader_libLewis Russell2024-10-31
| |