David Shen
5d6006f9bf
feat(diagnostic): add "code" to the diagnostic structure ( #17510 )
2022-03-02 18:42:27 -07:00
James McCoy
051a0514dc
Merge pull request #17579 from zeertzjq/ci-win-fail
...
ci: show failed message on Windows
2022-03-02 20:21:13 -05:00
zeertzjq
f015994a42
Merge pull request #17571 from zeertzjq/pvs-autocmd
...
Some clang and PVS fixes
2022-03-03 08:25:28 +08:00
zeertzjq
1495c4d166
ci: show failed message on Windows
2022-03-03 08:16:31 +08:00
zeertzjq
85de9b06ed
Merge pull request #17578 from zeertzjq/test-warning-poke
...
test: mention poke_eventloop() instead of wait()
2022-03-03 06:23:10 +08:00
Tim Pope
d477788cd5
fix(lsp): respect all of 'fixeol', 'eol', and 'binary' applying edits ( #17574 )
2022-03-02 11:33:02 -08:00
James McCoy
482ea0cc17
Merge pull request #17575 from zeertzjq/pty-did-eof
...
fix(pty_process_win/wait_eof_timer_cb): also check for proc->out.did_eof
2022-03-02 11:57:19 -05:00
zeertzjq
ede4eac61f
test: mention poke_eventloop() instead of wait()
2022-03-02 22:31:20 +08:00
zeertzjq
bc04c3d1ba
revert: "ci(windows): skip oldtest on windows until failing tests are fixed"
...
This reverts commit 07d3fb6e3b
.
2022-03-02 21:28:41 +08:00
zeertzjq
4154bf9b59
fix(pty_process_win/wait_eof_timer_cb): also check for proc->out.did_eof
2022-03-02 21:28:36 +08:00
bfredl
0e02a5f109
Merge pull request #17572 from bfredl/testfix
...
fix(test): only use buffer completion in popupmenu timer test
2022-03-02 10:38:37 +01:00
bfredl
5ecb2cb539
fix(test): only use buffer completion in popupmenu timer test
2022-03-02 09:15:49 +01:00
zeertzjq
3763d7d2d5
refactor(clang): dead assignment buflocal_nr = 0
2022-03-02 15:17:50 +08:00
zeertzjq
8ba47a6457
refactor(PVS/V547): aucmd.type == CALLABLE_NONE is always false
2022-03-02 15:14:52 +08:00
zeertzjq
22d1b2423f
refactor(PVS/V560): ap == NULL is always false
2022-03-02 15:14:11 +08:00
zeertzjq
4b3f920477
Merge pull request #16804 from zeertzjq/ui-aucmd-docs
...
docs: clarify UIEnter and UILeave docs
2022-03-02 15:05:19 +08:00
zeertzjq
4c24fcb91f
Merge pull request #17570 from zeertzjq/pvs-autocmd-header
...
chore(PVS): add PVS header to api/autocmd.c
2022-03-02 09:02:28 +08:00
zeertzjq
55a189583e
chore(PVS): add PVS header to api/autocmd.c
2022-03-02 08:50:15 +08:00
zeertzjq
1fdf903911
Merge pull request #17569 from zeertzjq/test-mapping
...
test: move two mapping tests to ex_cmds/map_spec.lua
2022-03-02 08:45:41 +08:00
zeertzjq
9a5a3c699e
test: move two mapping tests to ex_cmds/map_spec.lua
2022-03-02 08:15:29 +08:00
Gregory Anders
ed1a9c310d
fix: enable filetype detection and syntax highlighting with --clean ( #17566 )
...
--clean is supposed to emulate a "fresh install" and since Neovim
enables filetype detection and syntax highlighting by default, these
should be enabled when using --clean as well.
2022-03-01 10:47:20 -07:00
James McCoy
770b9f3c3b
Merge pull request #17542 from dundargoc/ci/skip-oldtest-on-windows
2022-03-01 11:37:50 -05:00
Dundar Göc
07d3fb6e3b
ci(windows): skip oldtest on windows until failing tests are fixed
...
The oltests hang on windows, making all CI runs fail.
2022-03-01 17:03:13 +01:00
bfredl
a7bc3e0f7b
Merge pull request #17556 from zeertzjq/remove-unused-k-aucmd-special
...
refactor: remove unused K_AUCMD_SPECIAL
2022-03-01 13:16:45 +01:00
bfredl
0a9b00913f
Merge pull request #15079 from shadmansaleh/feat/verbose_lua
...
feat(lua): add :verbose support for lua config
2022-03-01 13:13:11 +01:00
Christian Clason
37a86a2f96
fix(api): include event in get_autocmds ( #17553 )
2022-03-01 09:07:41 +01:00
zeertzjq
01139ec82c
Merge pull request #17557 from zeertzjq/clarify-plug
...
docs: clarify actual behavior of <Plug>
2022-03-01 09:44:40 +08:00
zeertzjq
0cb9a577ed
docs: clarify actual behavior of <Plug>
2022-03-01 09:28:27 +08:00
zeertzjq
fed515d9e7
refactor: remove unused K_AUCMD_SPECIAL
2022-03-01 07:32:04 +08:00
bfredl
cf0266fae1
Merge pull request #17551 from bfredl/lua_autocmd_rebase
...
feat(lua_autocmd): episode III (the autocmds strike back)
2022-02-28 20:57:24 +01:00
TJ DeVries
0f613482b3
feat(lua): add missing changes to autocmds lost in the rebase
...
Note: some of these changes are breaking, like change of API signatures
2022-02-28 19:53:50 +01:00
bfredl
6732cd9e57
Merge pull request #17529 from seandewar/api-string-oopsie
...
fix(api): convert blob to NUL-terminated API string
2022-02-28 14:59:52 +01:00
zeertzjq
cca08d0f3b
Merge pull request #17476 from dundargoc/test/emmylua
...
test: correct emmylua annotations
2022-02-28 21:21:41 +08:00
shadmansaleh
7b6ee3ef0a
fix: anonymous sid not working
2022-02-28 19:18:49 +06:00
shadmansaleh
ebfe083337
feat(lua): show proper verbose output for lua configuration
...
`:verbose` didn't work properly with lua configs (For example:
options or keymaps are set from lua, just say that they were set
from lua, doesn't say where they were set at.
This fixes that issue. Now `:verbose` will provide filename and line no
when option/keymap is set from lua.
Changes:
- compiles lua/vim/keymap.lua as vim/keymap.lua
- When souring a lua file current_sctx.sc_sid is set to SID_LUA
- Moved finding scripts SID out of `do_source()` to `get_current_script_id()`.
So it can be reused for lua files.
- Added new function `nlua_get_sctx` that extracts current lua scripts
name and line no with debug library. And creates a sctx for it.
NOTE: This function ignores C functions and blacklist which
currently contains only vim/_meta.lua so vim.o/opt wrappers aren't
targeted.
- Added function `nlua_set_sctx` that changes provided sctx to current
lua scripts sctx if a lua file is being executed.
- Added tests in tests/functional/lua/verbose_spec.lua
- add primary support for additional types (:autocmd, :function, :syntax) to lua verbose
Note: These can't yet be directly set from lua but once that's possible
:verbose should work for them hopefully :D
- add :verbose support for nvim_exec & nvim_command within lua
Currently auto commands/commands/functions ... can only be defined
by nvim_exec/nvim_command this adds support for them. Means if those
Are defined within lua with vim.cmd/nvim_exec :verbose will show their
location . Though note it'll show the line no on which nvim_exec call was made.
2022-02-28 19:18:49 +06:00
zeertzjq
e383543342
Merge pull request #17544 from r0x0d/update-readme-for-fedora-link
...
Fix fedora broken link
2022-02-28 09:38:00 +08:00
Rodolfo Olivieri
43c495b183
docs: fix fedora broken link in readme
...
The link to the neovim fedorapackage.org in the README.md was broken.
Signed-off-by: Rodolfo Olivieri <rodolfo.olivieri3@gmail.com>
2022-02-27 22:19:16 -03:00
bfredl
fad33b095f
Merge pull request #14661 from tjdevries/tjdevries/lua_autocmd_v2
...
lua: autocmds take 2: electric autoroo
2022-02-28 00:07:31 +01:00
TJ DeVries
991e472881
feat(lua): add api and lua autocmds
2022-02-27 22:04:55 +01:00
Javier Lopez
1b5767aa34
feat(lua): add <f-args> to user commands callback ( #17522 )
...
Works similar to ex <f-args>. It only splits the arguments if the
command has more than one posible argument. In cases were the command
can only have 1 argument opts.fargs = { opts.args }
2022-02-27 12:35:06 -07:00
bfredl
c65d93e60a
Merge pull request #16969 from shadmansaleh/enhance/ingore_nore_on_plug_keymaps
...
feat: ignore nore on <Plug> maps
2022-02-27 16:47:55 +01:00
James McCoy
243869658e
Merge pull request #17540 from jamessan/luv-bump-fix
...
ci(lint): use bundled luv until system packages are updated
2022-02-27 09:16:50 -05:00
James McCoy
97ed3effff
ci(lint): re-add building of third-party
2022-02-27 09:07:11 -05:00
James McCoy
8d8288461a
ci(lint): use bundled luv until system packages are updated
2022-02-27 09:07:11 -05:00
James McCoy
55ab76a1c0
build: bump minimum version of luv to 1.43.0
...
This is required for the recent addition of lua loop threading
(luv_set_thread).
2022-02-27 09:06:55 -05:00
Christian Clason
9d3370a144
vim-patch:c51cf0329809 ( #17530 )
...
Update runtime files.
c51cf03298
2022-02-27 11:56:30 +01:00
bfredl
7dd2b0b79a
Merge pull request #17386 from bfredl/neothread
...
support threads in lua
2022-02-27 09:41:02 +01:00
zeertzjq
8bf3a3e303
Merge pull request #17432 from zeertzjq/vim-8.1.2336
...
vim-patch:8.1.2336,8.2.{4338,4401}: mapping cursor and redrawing patches
2022-02-27 10:51:11 +08:00
shadmansaleh
c031e038df
chore: remove <Plug> detection from vim.keymap
2022-02-27 08:21:21 +06:00
shadmansaleh
0347875a5c
feat: ignore nore on <Plug> maps
2022-02-27 08:21:21 +06:00