Lewis Russell
4b001f297a
fix(lsp): fix infinite loop
...
Fixes #31129
2024-11-09 09:41:12 +00:00
zeertzjq
b7e1bbfb50
Merge pull request #31130 from zeertzjq/vim-3780c11
...
vim-patch: runtime file updates
2024-11-09 09:31:52 +08:00
zeertzjq and Konfekt
c914ecf4c9
vim-patch:0f60fbf: runtime(compiler): improve cppcheck
...
Properly escape the values for makeprg according to the :set rules
closes : vim/vim#16014
https://github.com/vim/vim/commit/0f60fbf6796b72111184a6734b702a93f8f8944b
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com >
2024-11-09 08:45:10 +08:00
zeertzjq and Duke
591884c9fb
vim-patch:39f52a6: runtime(structurizr): Update structurizr syntax
...
closes : vim/vim#16003
https://github.com/vim/vim/commit/39f52a62492086acef1e9dbd71e344447954deb5
Co-authored-by: Duke <emersonalmeidax@gmail.com >
2024-11-09 08:44:44 +08:00
zeertzjq and Ron Aaron
6b6a3b3894
vim-patch:6e410c9: runtime(8th): updated 8th syntax
...
closes : vim/vim#16005
https://github.com/vim/vim/commit/6e410c9112497206c12330ab8a827b9d061579a9
Co-authored-by: Ron Aaron <ron@aaron-tech.com >
2024-11-09 08:44:20 +08:00
zeertzjq and Konfekt
b4c5e743ac
vim-patch:6d9a145: runtime(compiler): add mypy and ruff compiler; update pylint linter
...
mypy and ruff come from
https://github.com/Konfekt/vim-compilers/tree/master/compiler and the
former was added by @pbnj-dragon
closes : vim/vim#16007
https://github.com/vim/vim/commit/6d9a145d719857fe461d045adf3b61ec4b4bb53f
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com >
2024-11-09 08:43:50 +08:00
zeertzjq and Tom Benham
5c600370e0
vim-patch:64a536d: runtime(netrw): fix several bugs in netrw tree listing
...
fixes : vim/vim#5630
fixes : vim/vim#9807
fixes : vim/vim#14623
closes : vim/vim#15996
https://github.com/vim/vim/commit/64a536d4fa17ec176f574a01543e483a163622eb
Co-authored-by: Tom Benham <tom.benham13@gmail.com >
2024-11-09 08:41:04 +08:00
zeertzjq and Christian Brabandt
1d9eb84558
vim-patch:a063b22: runtime(netrw): prevent polluting the search history
...
https://github.com/vim/vim/commit/a063b22b3bbc1c7ad9d985b14d6e3c5b7c6e3eca
Co-authored-by: Christian Brabandt <cb@256bit.org >
2024-11-09 08:24:19 +08:00
zeertzjq and Enno
32566dc1c3
vim-patch:3780c11: runtime(compiler): fix typo in cppcheck compiler plugin
...
closes : vim/vim#16002
https://github.com/vim/vim/commit/3780c11267415ff57f261fcd3e1dea0c2c9d8dd0
Co-authored-by: Enno <Konfekt@users.noreply.github.com >
2024-11-09 08:23:59 +08:00
5a27d02584
docs: misc ( #30914 )
...
Co-authored-by: Ernie Rael <errael@raelity.com >
Co-authored-by: Famiu Haque <famiuhaque@proton.me >
Co-authored-by: Jade <spacey-sooty@proton.me >
Co-authored-by: glepnir <glephunter@gmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2024-11-09 08:10:56 +08:00
Lewis Russell
ad3472e291
fix(vim.system): resolve executable paths on windows
...
Fixes #31107
2024-11-08 16:29:44 +00:00
Lewis Russell
7342e6b00d
perf(lsp): do not apply semantic tokens to folded lines
...
Fixes #31106
2024-11-08 14:01:35 +00:00
bfredl
475f9f64ef
Merge pull request #31073 from bfredl/cmdchar
...
fix(cmdline): simplify and correct grapheme cluster adjustment
2024-11-08 13:08:14 +01:00
bfredl
092042b43d
fix(cmdline): simplify and correct grapheme cluster adjustment
2024-11-08 11:25:34 +01:00
bfredl
8ab1903092
Merge pull request #31040 from luukvbaal/cmdpreviewcurs
...
fix(inccommand): ensure cursor is where it belongs
2024-11-08 11:22:14 +01:00
zeertzjq
f83a31b49d
refactor(options): use os_win/os_buf for local options ( #31060 )
...
Conversely, don't use them for global options.
2024-11-08 06:54:28 +00:00
Famiu Haque
8af1702647
refactor(options): remove varp argument for set_option ( #31111 )
...
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`
2024-11-08 13:28:18 +08:00
Luuk van Baal
59e130b6ca
fix(inccommand): ensure cursor is where it belongs
...
Problem: Inccommand preview callback may flush inaccurate cmdline cursor position.
Solution: Ensure cursor is where it belongs when doing command preview.
2024-11-07 13:12:30 +01:00
zeertzjq
5a86360400
test: add test for key following ignored mouse move ( #31104 )
2024-11-07 17:53:30 +08:00
errael
000129201c
perf(mouse): only generate <MouseMove> for a new cell positon ( #31103 )
...
Problem: Can receive dozens of <MouseMove> events for same cell position. #30965
Solution: Leverage check_multiclick() to detect if cell position is unchanged.
2024-11-07 16:21:28 +08:00
Lewis Russell
f7e32fb6e6
fix(test): better management of tmpfiles
...
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.
2024-11-06 11:37:33 +00:00
dundargoc
f8b193a01e
ci: adjust reviewers
2024-11-06 11:22:09 +01:00
bfredl
c0f222d55b
Merge pull request #31062 from famiu/refactor/options/ff_macro
...
refactor(options): remove fileformat macros
2024-11-06 10:19:28 +01:00
Famiu Haque
04274a4173
refactor(options): remove unnecessary call to find_option() ( #31088 )
2024-11-06 06:07:29 +08:00
Christian Clason and Riley Bruins
ba40a6dbe3
vim-patch:9.1.0839: filetype: leo files are not recognized
...
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 >
2024-11-05 08:31:45 +01:00
Christian Clason and Serhii Khoma
65b9499e4a
vim-patch:9.1.0840: filetype: idris2 files are not recognized
...
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 >
2024-11-05 08:31:32 +01:00
Christian Clason and Matteo Landi
baf74ef975
vim-patch:59834ba: runtime(matchparen): Add matchparen_disable_cursor_hl 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 >
2024-11-05 08:31:19 +01:00
Christian Clason and Riley Bruins
fc8e786dae
vim-patch:19bc76c: runtime(cook): include cook filetype plugin
...
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 >
2024-11-05 08:31:19 +01:00
Christian Clason and James McCoy
9ee1c87591
vim-patch:9dadfe7: runtime(debversions): Update Debian versions
...
- 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 >
2024-11-05 08:31:19 +01:00
zeertzjq and Yee Cheng Chin
f5b84c1a44
vim-patch:9.1.0841: tests: still preferring python2 over python3 ( #31083 )
...
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 >
2024-11-04 23:26:33 +00:00
Famiu Haque
cbc9a03f58
refactor(options): remove fileformat macros
2024-11-05 02:36:51 +06:00
Yochem van Rosmalen
079e5f4f9b
feat(defaults): unimpaired empty line below/above cursor #30984
2024-11-04 06:06:18 -08:00
Famiu Haque
a27419f3fc
feat(options)!: disallow setting hidden options #28400
...
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.
2024-11-04 05:00:12 -08:00
bfredl
04d178053f
Merge pull request #30608 from bfredl/cchar2
...
feat(editor): handle new multibyte sequences in normal mode replacement
2024-11-04 13:59:24 +01:00
bfredl
23290e7676
feat(editor): handle new multibyte sequences in normal mode replacement
...
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}
2024-11-04 13:12:33 +01:00
Lewis Russell
6e68fed374
feat(lsp): multi-client support for signature_help
...
Signatures can be cycled using `<C-s>` when the user enters the floating
window.
2024-11-04 11:55:39 +00:00
dundargoc
0da4d89558
ci: work around flaky python tests ( #31063 )
...
It's the same workaround as 88ed9ffcd1 ,
which was later removed in f707ce76ac
after it turned out to be stable after a while.
2024-11-03 23:00:18 +08:00
zeertzjq
76643a1c0d
Merge pull request #31059 from zeertzjq/vim-9.1.0832
...
vim-patch:9.1.{0832,0835}
2024-11-03 17:46:02 +08:00
zeertzjq
fe565ca382
vim-patch:9.1.0835: :setglobal doesn't work properly for 'ffu' and 'tsrfu'
...
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
2024-11-03 17:04:34 +08:00
zeertzjq
981fa11c91
vim-patch:9.1.0832: :set doesn't work for 'cot' and 'bkc' after :setlocal
...
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
2024-11-03 16:58:22 +08:00
zeertzjq
99acc9de55
fix(treesitter): close InspectTree/EditQuery window on BufUnload ( #31036 )
...
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.
2024-11-03 11:28:31 +08:00
zeertzjq and Yegappan Lakshmanan
3075c69ff0
vim-patch:9.1.0831: 'findexpr' can't be used as lambad or Funcref ( #31058 )
...
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 >
2024-11-03 10:06:41 +08:00
zeertzjq and glepnir
ed3fb1bb9a
vim-patch:9.1.0830: using wrong highlight group for spaces for popupmenu ( #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 >
2024-11-03 08:27:15 +08:00
zeertzjq and S. B. Tam
f3606416f0
vim-patch:a95d6a3: runtime(doc): remove stray sentence in pi_netrw.txt ( #31053 )
...
closes : vim/vim#15971
https://github.com/vim/vim/commit/a95d6a3d641dd065cccb1e76863dd3450ee5ce04
Co-authored-by: S. B. Tam <cpplearner@outlook.com >
2024-11-03 07:19:57 +08:00
Christian Clason
2e3f1069f4
fix(health): better layout of vim.treesitter health check
...
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.
2024-11-02 23:51:00 +01:00
Christian Clason and Riley Bruins
db46b58569
vim-patch:9.1.0826: filetype: sway files are not recognized
...
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 >
2024-11-02 23:33:38 +01:00
Christian Clason and Yinzuo Jiang
f5933d196b
vim-patch:d181baf: runtime(typst): synchronize updates from the upstream 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 >
2024-11-02 23:33:25 +01:00
Famiu Haque
86e54734bf
refactor(options): remove get_option_value_strict
...
Problem: `get_option_value_for` can perfectly replace `get_option_value_strict`, making the latter redundant.
Solution: Remove `get_option_value_strict`
2024-11-02 15:53:49 +00:00
zeertzjq
3688a33354
fix(lua): show stacktrace for error in vim.on_key() callback ( #31021 )
2024-11-02 10:11:06 +08:00
zeertzjq and Ernesto Elsäßer
b25ae5d328
vim-patch:26113e5: runtime(doc): Include netrw-gp in TOC ( #31032 )
...
closes : vim/vim#7627
https://github.com/vim/vim/commit/26113e5ae3c4762ab718d5f006afa71f67e6f459
Co-authored-by: Ernesto Elsäßer <ernesto.elsaesser@me.com >
2024-11-02 07:11:15 +08:00