zeertzjq
f246a929e7
Merge pull request #18738 from zeertzjq/vim-8.2.5010
...
vim-patch:8.2.5010: the terminal debugger uses various global variables
2022-05-26 08:08:35 +08:00
dundargoc
068fb748e1
vim-patch:8.2.5015: Hoon and Moonscript files are not recognized ( #18747 )
...
Problem: Hoon and Moonscript files are not recognized.
Solution: Add filetype patterns. (Goc Dundar, closes vim/vim#10478 )
bf82df0dd4
2022-05-25 18:07:58 -06:00
zeertzjq
ec48c6f236
vim-patch:8.2.5010: the terminal debugger uses various global variables
...
Problem: The terminal debugger uses various global variables.
Solution: Add a dictionary to hold the terminal debugger preferences.
c9a431c763
Omit popup menu.
2022-05-26 07:47:00 +08:00
zeertzjq
eb623a1c45
docs: add missing termdebug docs from Vim runtime updates
...
388a5d4f20
4466ad6baa
6aa57295cf
Rename terminal.txt to nvim_terminal_emulator.txt in vim-patch.sh.
2022-05-26 07:47:00 +08:00
James McCoy
6db3f3f624
Merge pull request #18748 from dundargoc/ci/msvc
...
ci(mingw): only enable -municode for MinGW
2022-05-25 19:43:34 -04:00
zeertzjq
cbf57fa353
vim-patch:8.2.5016: access before start of text with a put command ( #18742 )
...
Problem: Access before start of text with a put command.
Solution: Check the length is more than zero.
2a585c8501
2022-05-26 07:20:39 +08:00
Dundar Goc
e21899ac4f
ci(mingw): only enable -municode for MinGW
...
When enabling -municode for MSVC the following warning shows up:
"LINK : warning LNK4044: unrecognized option '/municode'; ignored".
This will ensure cleaner logs for the MSVC job.
2022-05-25 22:23:27 +02:00
dundargoc
9fec6dc9a2
refactor(uncrustify): set maximum number of consecutive newlines to 2 ( #18695 )
2022-05-25 12:31:14 -06:00
Gregory Anders
8c4e62351f
refactor(lsp): remove redundant client cleanup ( #18744 )
...
The client state is cleaned up both in client.stop() as well as in the
client.on_exit() handler. Technically, the client has not actually
stopped until the on_exit handler is called, so we should just do this
cleanup there and remove it from client.stop().
2022-05-25 11:45:45 -06:00
Mathias Fußenegger
fa3492c5f7
feat(lsp)!: turn format filter into predicate ( #18458 )
...
This makes the common use case easier.
If one really needs access to all clients, they can create a filter
function which manually calls `get_active_clients`.
2022-05-25 19:38:01 +02:00
Elton Leander Pinto
c6d6b8c7eb
fix(lsp): respect global syntax setting in open float preview ( #15225 )
2022-05-25 18:47:49 +02:00
bfredl
24352cba01
Merge pull request #18528 from lewis6991/setwinopt
...
feat(api): add `win` and `buf` to `nvim_set_option_value`
2022-05-25 17:05:28 +02:00
Gregory Anders
802a23926d
build: require exact Lua version when using PREFER_LUA ( #16633 )
2022-05-25 08:11:53 -06:00
zeertzjq
af2899aee0
vim-patch:8.2.5012: cannot select one character inside () ( #18731 )
...
Problem: Cannot select one character inside ().
Solution: Do not try to extend the area if it is empty. (closes vim/vim#10472 ,
closes vim/vim#6616 )
53737b5eee
2022-05-25 07:16:12 +08:00
zeertzjq
2f974736ac
fix(coverity): bail out if mouse_find_win() returns NULL ( #18726 )
2022-05-25 07:14:50 +08:00
Daniel Steinberg
e5490b38b7
docs(api): floating wins omitted under :mksession ( #18721 )
2022-05-24 11:32:01 -06:00
James McCoy
eebd682221
Merge pull request #18728 from dundargoc/ci/api/upgrade-to-ubuntu-22
...
ci(api-docs): upgrade to ubuntu 22 and remove conda dependency
2022-05-24 07:20:40 -04:00
James McCoy
d7e45ee4b9
Merge pull request #18626 from dundargoc/ci/shallow-clone
...
ci(api-docs): add comment explaining why full clone is needed
2022-05-24 07:20:04 -04:00
James McCoy
4fab52908b
Merge pull request #18607 from dundargoc/build/mingw
...
restore mingw in cmake
2022-05-24 07:19:12 -04:00
Dundar Goc
db059ed1f1
ci(api-docs): add comment explaining why full clone is required
2022-05-24 12:29:58 +02:00
Dundar Goc
e9f8a478fc
ci(api-docs): upgrade to ubuntu 22 and remove conda dependency
...
Ubuntu 22 has doxygen version 1.9.1 available in apt, which means we
don't need to use conda anymore. This will somewhat simplify the
workflow.
2022-05-24 12:21:17 +02:00
dundargoc
307c5c63e1
vim-patch:8.2.4999: filetype test table is not properly sorted ( #18719 )
...
Problem: Filetype test table is not properly sorted.
Solution: Sort by filetype. (Doug Kearns)
aa9729b652
2022-05-24 09:29:40 +08:00
notomo
5eaf9ef811
fix(filetype): correct vim.fn.did_filetype() handling ( #18725 )
2022-05-23 18:55:03 -06:00
dundargoc
a20892c4bc
vim-patch:partial 2d8ed0203aed ( #18675 )
...
* vim-patch:partial 2d8ed0203aed
Update runtime files.
2d8ed0203a
Skip:
runtime/doc/map.txt
runtime/doc/syntax.txt
runtime/doc/usr_51.txt
runtime/doc/usr_52.txt
runtime/syntax/help.vim
runtime/syntax/vim.vim
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
2022-05-23 23:49:38 +02:00
Brandon Simmons
37ee800b51
vim-patch:8.2.5009: fold may not be closeable after appending ( #18722 )
...
Problem: Fold may not be closeable after appending.
Solution: Set the fd_small flag to MAYBE. (Brandon Simmons, closes vim/vim#10471 )
e8c4a64bff
2022-05-23 20:13:22 +01:00
bfredl
c2f4920d3b
Merge pull request #18712 from famiu/feat/ui/winbar_redraw
...
fix(ui): redraw winbar alongside statusline
2022-05-23 16:32:35 +02:00
Famiu Haque
353553f913
fix(ui): redraw winbar alongside statusline
...
Remove `w_redr_winbar` and use `w_redr_status` to redraw the winbar to
ensure that winbar redraw is triggered alongside the statusline redraw.
2022-05-23 19:35:46 +06:00
zeertzjq
4b4643be07
vim-patch:8.2.5008: when 'formatoptions' contains "/" wrongly wrapping comment ( #18717 )
...
Problem: When 'formatoptions' contains "/" wrongly wrapping a long trailing
comment.
Solution: Pass the OPENLINE_FORMAT flag.
7e66778815
2022-05-23 21:27:57 +08:00
Famiu Haque
4c6626f03d
feat: click support for 'statusline', 'winbar' #18650
...
The mouseclick item "%@" is now supported by 'statusline' and 'winbar'.
Previously it was only supported by 'tabline'.
2022-05-23 06:11:24 -07:00
Gregory Anders
9e1ee9fb1d
refactor!: delete insertmode ( #18547 )
...
Neovim already removed `evim` (or any similar flags). The 'insertmode'
option is a weird remnant, so get rid of it.
The 'insertmode' option is replaced with a script that closely emulates
the option. This script is documented at :help 'insertmode'
2022-05-22 21:20:18 -06:00
zeertzjq
a7e0a02031
Merge pull request #18691 from zeertzjq/vim-8.2.4996
...
vim-patch:8.2.{4996.5002}: setbufline(), deletebufline() may change Visual selection
2022-05-23 07:27:26 +08:00
zeertzjq
39fb97b2a5
vim-patch:8.2.5001: checking translations affects the search pattern history ( #18709 )
...
Problem: Checking translations affects the search pattern history.
Solution: Use "keeppatterns". (Doug Kearns)
8a3704723c
2022-05-23 07:24:44 +08:00
zeertzjq
bcfc97e8d8
vim-patch:8.2.5002: deletebufline() may change Visual selection
...
Problem: deletebufline() may change Visual selection.
Solution: Disable Visual mode when using another buffer. (closes vim/vim#10469 )
9b2edfd3bf
2022-05-23 06:57:30 +08:00
zeertzjq
eae4eddc54
vim-patch:8.2.4996: setbufline() may change Visual selection
...
Problem: setbufline() may change Visual selection. (Qiming Zhao)
Solution: Disable Visual mode when using another buffer. (closes vim/vim#10466 )
0ad00a7fd3
2022-05-23 06:54:12 +08:00
Gregory Anders
378615b8ee
fix(lsp): do not detach LSP servers on Windows #18703
...
Detaching the process seems to have unintended side effects on Windows,
so only do it by default on non-Windows platforms.
Ref: https://github.com/neovim/nvim-lspconfig/issues/1907
Closes https://github.com/neovim/nvim-lspconfig/pull/1913
2022-05-22 12:21:44 -07:00
Jonas Strittmatter
52623ce935
refactor(runtime): convert the remaining dist#ft functions to lua ( #18623 )
2022-05-22 12:16:04 -06:00
dundargoc
8c2fd65bb1
build(clint): remove redundant checks #18698
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-05-22 10:59:56 -07:00
bfredl
5250d5c1b1
Merge pull request #18646 from bfredl/winbarruler
...
fix(winbar): allow winbar to display a ruler
2022-05-22 19:43:30 +02:00
James McCoy
47d9a393de
fix(cid/352839): USE_AFTER_FREE in create_user_command #18669
2022-05-22 10:29:15 -07:00
bfredl
7f6d2984a8
Merge pull request #18608 from ckipp01/extmarkDocs
...
docs(extmark): remove message about passing in id=0
2022-05-22 19:07:51 +02:00
bfredl
060ef52d8b
fix(winbar): allow winbar to display the ruler
2022-05-22 18:56:07 +02:00
Daniel Steinberg
3fe6bf3a1e
fix(mksession): don't store floats in session #18635
...
Problem:
If there are floating windows when `:mksession` runs, the session cannot
be properly restored.
Solution:
Change `:mksession` to skip floating windows. This matches Vim's
treatment of popup windows.
An alternative approach could have `:mksession` save floating windows
that can be _properly_ restored (rather than skip them entirely, which
is what this PR does). While that would seemingly be a more complete
fix, that could present additional issues since floating windows are
ordinarily created by plugins, and they may no longer be properly under
a plugin's control when restored.
closes #18432
2022-05-22 09:03:56 -07:00
bfredl
b863c150c9
Merge pull request #18696 from bfredl/quickinc
...
fix(tests): fix some issues with ui/inccommand_spec.lua causing slowness
2022-05-22 17:51:31 +02:00
dundargoc
63741176ce
ci(commitlint): only trigger on PRs to master #18679
...
This will prevent a failure for backported PRs as they use a different
commit message.
2022-05-22 08:03:06 -07:00
bfredl
9b34723bcc
Merge pull request #18693 from bfredl/quicklsp
...
fix(ci): remove 2000ms blocking wait in many plugin/lsp_spec.lua tests
2022-05-22 16:25:17 +02:00
bfredl
e01c197eab
fix(tests): fix some issues with ui/inccommand_spec.lua causing slowness
...
from ~30 to ~20 secs with ASAN build
- feedkeys test: the same substitute was repeated, and not even correctly spelled
- don't clear() in a tight loop. "bwipe!" is enough to erase undo history
- error in cnoremap mapping causes a check_for_delay(). <c-c> it away.
2022-05-22 16:17:37 +02:00
zeertzjq
566ee48f05
vim-patch:8.2.4935: with 'foldmethod' "indent" some lines not included in fold ( #18694 )
...
Problem: With 'foldmethod' "indent" some lines are not included in the
fold. (Oleg Koshovetc)
Solution: Fix it. (Brandon Simmons, closes vim/vim#10399 , closes vim/vim#3214 )
d98e75e236
2022-05-22 21:37:25 +08:00
zeertzjq
70e3caec4a
fix(folds): fix fold regression with :move ( #18685 )
2022-05-22 21:03:22 +08:00
bfredl
e7b3fd8ad6
Merge pull request #18681 from bfredl/uitest
...
fix(tests): fix some screen.lua warnings
2022-05-22 14:32:38 +02:00
bfredl
58b9b7e7c4
fix(ci): remove 2000ms blocking wait in many plugin/lsp_spec.lua tests
...
Cuts down typical run time for `plugin/lsp_spec.lua`
from 70 secs to 12 secs in ASAN CI build.
This happens in ASAN/EXIT_FREE builds where nvim waits 2000ms due to
unclosed handled. I wasn't able to pin-point the exact cause.
But these tests ran in nested context where two server/client pairs
were setup for no good reason. Moving these tests out so only one client
is being setup fixed the exit hang.
2022-05-22 14:14:58 +02:00