dundargoc
573bcb2aaf
build: remove enforcement of cmake build type
...
Forcing the build type to be one of the default types was intended to
prevent usage of custom build types which risks unpredictability.
Unfortunately, many distributions patch this check out so they can use
a custom type anyway, making the check moot in the first place. Instead,
allow custom build types but don't try to accomodate them in the code:
we're making the assumption that anyone who wants to use a custom build
type will be able to set any additional necessary flags needed for their
specific system.
2024-10-22 11:21:54 +02:00
zeertzjq
8c532a9ea8
fix(options): fix 'winhl' still accepting invalid value ( #30896 )
2024-10-22 08:10:15 +00:00
zeertzjq
772614f9cc
refactor(eval): fix clear_evalarg() called with wrong argument ( #30899 )
2024-10-22 07:23:34 +00:00
Christian Clason
85e04d9b87
vim-patch:a7d4561: runtime(netrw): deprecate and remove netrwFileHandlers#Invoke()
...
closes : vim/vim#15895
a7d456191d
Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
2024-10-22 09:10:46 +02:00
Christian Clason
a25ec00f88
vim-patch:421ed14: runtime(typst): add folding to typst ftplugin
...
closes : vim/vim#15897
421ed14b8a
Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
2024-10-22 09:10:46 +02:00
Christian Clason
a6d1165771
vim-patch:9.1.0796: filetype: libtool files are not recognized
...
Problem: filetype: libtool files are not recognized
Solution: detect '*.{lo,la,lai}' as sh filetype
(Wu, Zhenyu)
closes : vim/vim#15751
bfe568d8c4
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
2024-10-22 08:55:39 +02:00
Christian Clason
b7779aad41
vim-patch:9.1.0795: filetype: Vivado memory info file are not recognized
...
Problem: filetype: Vivado memory info file are not recognized
Solution: detect '*.mmi' memory info file as xml filetype
(Wu, Zhenyu)
References: https://docs.amd.com/r/en-US/ug1580-updatemem/MMI-File-Syntax
closes : vim/vim#15906
0887e62bce
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
2024-10-22 08:55:39 +02:00
zeertzjq
ca7855c5ba
vim-patch:9.1.0798: too many strlen() calls in cmdhist.c ( #30895 )
...
Problem: too many strlen() calls in cmdhist.c
Solution: refactor code and remove strlen() calls
(John Marriott)
closes : vim/vim#15888
8df07d0ca3
Co-authored-by: John Marriott <basilisk@internode.on.net>
2024-10-22 13:03:02 +08:00
zeertzjq
1b9dafa67b
fix(options): fix :setglobal not working for 'spelloptions' ( #30894 )
2024-10-22 11:34:09 +08:00
zeertzjq
f663243e95
vim-patch:9.1.0797: testing of options can be further improved ( #30893 )
...
Problem: testing of options can be further improved
Solution: split the generated option test into test_options_all.vim,
add more test cases, save and restore values, fix use-after-free
closes : vim/vim#15894
6eca04e9f1
Co-authored-by: Milly <milly.ca@gmail.com>
2024-10-22 09:05:14 +08:00
Lewis Russell
c8e47f6480
fix(meta): do not use hyphens in param names
...
Fixes #30882
2024-10-21 12:09:33 +01:00
Lewis Russell
3572319b4c
feat(vim.validate): improve fast form and deprecate spec form
...
Problem:
`vim.validate()` takes two forms when it only needs one.
Solution:
- Teach the fast form all the features of the spec form.
- Deprecate the spec form.
- General optimizations for both forms.
- Add a `message` argument which can be used alongside or in place
of the `optional` argument.
2024-10-21 11:32:06 +01:00
Christian Clason
6fd13eedda
test(rpc): retry flaky 'vim.rpcrequest and vim.rpcnotify' test
...
Problem: 'vim.rpcrequest and vim.rpcnotify' is flaky on Windows.
Solution: retry it.
2024-10-21 11:24:34 +02:00
Justin M. Keyes
86832dcd19
Merge #30840 from justinmk/renamehl
2024-10-20 16:44:39 -07:00
zeertzjq
8c2d45be77
fix(exit): close memfiles after processing events ( #30872 )
...
Problem: When exiting, processed events may still use memfiles after
they are closed.
Solution: Close memfiles after processing events.
2024-10-21 07:22:42 +08:00
Justin M. Keyes
18b43c331d
refactor: rename vim.highlight => vim.hl
...
Problem:
- `vim.highlight` module does not follow `:help dev-name-common`, which
documents the name for "highlight" as "hl".
- Shorter names are usually preferred.
Solution:
Rename `vim.highlight` to `vim.hl`.
This is not a breaking change until 2.0 (or maybe never).
2024-10-21 00:54:43 +02:00
Justin M. Keyes
960fdc775a
fix(lua): vim.deprecate does not support major>0
2024-10-21 00:54:42 +02:00
Justin M. Keyes
c9c17fda80
feat(deprecations): vim._defer_deprecated_module()
2024-10-21 00:54:42 +02:00
Mathias Fußenegger
0083e03d6f
feat(lsp)!: support multiple clients in goto methods ( #30877 )
...
Relates to:
- https://github.com/neovim/neovim/issues/30034
- https://github.com/neovim/neovim/issues/17712
- https://github.com/neovim/neovim/issues/16363
Closes:
- https://github.com/neovim/neovim/issues/26936 (but only provides bufnr
and method)
- https://github.com/neovim/neovim/issues/22318
Might fix: https://github.com/neovim/neovim/issues/30737
2024-10-20 23:40:44 +02:00
zeertzjq
9b8907d905
feat(float): allow enabling mouse for non-focusable window ( #30844 )
...
Problem: Cannot allow mouse interaction for non-focusable float window.
Solution: Add a "mouse" field to float window config.
2024-10-20 22:18:26 +08:00
Mathias Fussenegger
dff684fdb3
feat(lsp)!: support multiple clients in lsp.buf.references
...
Relates to:
- https://github.com/neovim/neovim/issues/17712
- https://github.com/neovim/neovim/issues/30034
2024-10-20 14:43:22 +02:00
zeertzjq
ce9a9b4700
vim-patch:9.1.0794: tests: tests may fail on Windows environment ( #30874 )
...
Problem: tests: tests may fail on Windows environment
Solution: use shellcmdflag=/D to skip executing autorun from
the registry (Milly)
closes : vim/vim#15900
4f5681dbdf
Cherry-pick Test_cursorhold_insert_with_timer_interrupt() change from
patch 8.2.1836.
Co-authored-by: Milly <milly.ca@gmail.com>
2024-10-20 18:02:05 +08:00
Christian Clason
573fcb8b66
fix(deps): revert accidental test commits ( #30864 )
...
* Revert "build(deps): bump libuv to 52a924331"
This reverts commit 54137a798f
.
* Revert "build(deps): bump libuv to 18d48bc13"
This reverts commit 66753a2f0c
.
* Revert "build(deps): bump libuv to 9cf0710d7"
This reverts commit 4c617f4a47
.
2024-10-20 10:25:58 +02:00
zeertzjq
ed794c9a10
vim-patch:9.1.0792: tests: Test_set_values() is not comprehensive enough ( #30870 )
...
Problem: tests: Test_set_values() is not comprehensive enough
Solution: Add a lot more test cases (Milly)
closes : vim/vim#15892
cc15bbcbc4
Co-authored-by: Milly <milly.ca@gmail.com>
2024-10-20 08:18:38 +08:00
zeertzjq
3cf602486c
feat(terminal)!: make 'belloff' and 'visualbell' apply to terminal bell ( #30859 )
...
vim-patch:8.2.4744: a terminal window can't use the bell
vim-patch:8.2.4745: using wrong flag for using bell in the terminal
BREAKING CHANGE: Bells from :terminal are now silent by default, unless
'belloff' option doesn't contain "term" or "all".
2024-10-20 07:59:43 +08:00
bfredl
4833a63929
Merge pull request #30863 from neovim/ci-macos
...
ci: bump Intel macOS runners to 13
2024-10-19 14:51:59 +02:00
Christian Clason
f8632c51f1
ci: bump Intel macOS runners to 13
...
Problem: macos-12 GH runners are deprecated and will be removed soon.
Solution: use macos-13 runners instead.
2024-10-19 13:40:30 +02:00
Christian Clason
54137a798f
build(deps): bump libuv to 52a924331
2024-10-19 12:54:15 +02:00
Christian Clason
66753a2f0c
build(deps): bump libuv to 18d48bc13
2024-10-19 12:54:15 +02:00
Christian Clason
4c617f4a47
build(deps): bump libuv to 9cf0710d7
2024-10-19 12:54:15 +02:00
Christian Clason
f3241e19e0
build(deps): bump libuv to v1.49.2
2024-10-19 12:54:15 +02:00
zeertzjq
395f420fc6
fix(options): fix some 'belloff' flags not working properly ( #30856 )
...
Problem: Some 'belloff' flags don't work properly.
Solution: Keep BO_ flags and p_bo_values[] in sync.
2024-10-18 14:39:27 +00:00
zeertzjq
b5e69b32d7
vim-patch: make gen_opt_test.vim work with Nvim ( #30850 )
...
Problem: Insufficient test coverage for validation of option values.
Solution: Port Vim's gen_opt_test.vim and make it work with Nvim.
vim-patch:9.1.0760: tests: no error reported, if gen_opt_test.vim fails
vim-patch:9.1.0791: tests: errors in gen_opt_test.vim are not shown
2024-10-18 17:38:29 +08:00
Uthman Mohamed
f4b620c4e6
feat(vim.ui.open): support lemonade #30845
2024-10-18 02:22:15 -07:00
temhelk
564173e556
fix(lsp.util): wrong arguments to 'validate' function
2024-10-18 07:37:36 +01:00
Maria José Solano
31745b17e6
fix(types): add narrower vim.validate types
2024-10-18 07:36:54 +01:00
Christian Clason
27f3a2002c
vim-patch:5e48e97: runtime(compiler): check for compile_commands in build dirs for cppcheck
...
closes : vim/vim#15889
5e48e97e42
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
2024-10-18 01:00:01 +02:00
Christian Clason
ee16248458
vim-patch:f10db25: runtime(swayconfig): add flag for bindsym/bindcode to syntax script
...
Add the `--inhibited` flag for the bindsym/bindcode commands.
closes : vim/vim#15891
f10db25367
Co-authored-by: CismonX <admin@cismon.net>
2024-10-18 01:00:01 +02:00
Lewis Russell
3f3e4837d5
perf(validate): use lighter version
...
- Also fix `vim.validate()` for PUC Lua when showing errors for values
that aren't string or number.
2024-10-17 16:53:52 +01:00
Lewis Russell
fa6ab0d909
Merge pull request #30825 from lewis6991/refactor/lsputil
2024-10-17 13:35:02 +01:00
Lewis Russell
a18fa2f11c
feat(lsp.util): minor codestyle
2024-10-17 12:52:46 +01:00
Lewis Russell
cbc82011ce
feat(lsp.util): improve offset_encoding type annotations
2024-10-17 12:52:45 +01:00
Lewis Russell
e954a16063
feat(lsp.util): remove some variables
2024-10-17 12:52:45 +01:00
Lewis Russell
97119a2369
feat(lsp.util): use vim.w/b
2024-10-17 12:52:45 +01:00
Lewis Russell
3f87e222f7
feat(lsp.util): remove some aliases
2024-10-17 12:52:45 +01:00
Lewis Russell
8ad000ef7c
feat(lsp.util): remove unneeded table
2024-10-17 12:52:45 +01:00
Lewis Russell
acbc6a7f91
fix(lsp.util): inconsistent handling of offset_encoding
2024-10-17 12:52:45 +01:00
Lewis Russell
ff1d7d4299
feat(lsp.util): get_bufs_with_prefix -> get_writeable_bufs
2024-10-17 12:52:45 +01:00
Lewis Russell
1944c0d610
feat(lsp.util): refactor get_border_size()
2024-10-17 12:52:45 +01:00
Lewis Russell
d44d36b8ff
feat(lsp.util): simplify some bounds checking
2024-10-17 12:52:45 +01:00