Andrey Bushev
4bb1d1df79
feat(terminal): recognize underdouble and undercurl
2022-09-26 11:53:20 +08:00
Justin M. Keyes
63be765182
fix(docs): invalid :help links #20345
...
Fix those naughty single quotes.
closes #20159
2022-09-25 16:58:27 -07:00
zeertzjq
9ffa041a9a
vim-patch:9.0.0586: missing change in test ( #20347 )
...
Problem: Missing change in test.
Solution: Add the test change.
124af71a28
vim-patch:9.0.0585: when long message test fails the error message is not visible
Problem: When long message test fails the error message is not visible.
Solution: Dump more lines.
6a879878f4
2022-09-26 07:46:58 +08:00
zeertzjq
ac66f5af06
fix!: make :undo! notify buffer update callbacks ( #20344 )
...
When :undo! was introduced to Nvim the implementation of 'inccommand'
preview callback hasn't been fully decided yet, so not notifying buffer
update callbacks made sense for 'inccommand' preview callback in case it
needs to undo the changes itself.
Now it turns out that the undo-and-forget is done automatically for
'inccommand', so it doesn't make sense for :undo! to avoid notifying
buffer update callbacks anymore.
2022-09-26 07:15:07 +08:00
zeertzjq
a6c9764eda
fix(inccommand): deal with unsynced undo ( #20041 )
2022-09-26 07:00:37 +08:00
zeertzjq
f8a1cadccf
fix(filetype): use :setf instead of nvim_buf_set_option ( #20334 )
2022-09-25 16:29:25 +02:00
zeertzjq
fded344f38
fix(extmarks): make virt_lines always start at 0 virtcol
2022-09-25 21:44:01 +08:00
dundargoc
91e912f8d4
refactor: move klib out of src/nvim/ #20341
...
It's confusing to mix vendored dependencies with neovim source code. A
clean separation is simpler to keep track of and simpler to document.
2022-09-25 06:26:37 -07:00
Justin M. Keyes
4686bda06c
Merge #20331 refactor(treesitter)!: rename x_position => x_pos
2022-09-25 08:37:05 -04:00
Justin M. Keyes
1b60b5ec94
fix(gen_vimdoc.py): handle missing luajit
2022-09-25 14:31:33 +02:00
Christian Clason
2a5692c646
vim-patch:9.0.0583: only recognizing .m3u8 files is inconsistent ( #20342 )
...
Problem: Only recognizing .m3u8 files is inconsistent.
Solution: Also matc .m3u files. (issue vim/vim#11204 )
b9725bc7f6
2022-09-25 13:59:11 +02:00
Justin M. Keyes
3169fc54a1
refactor(treesitter): rename x_position => x_pos
...
"pos" has a long precedent as "position" in vim, and there is no reason
to use a verbose name here.
2022-09-25 13:46:15 +02:00
Louis Sven Goulet
2a3cb0893b
feat: ":write!" skips "file changed" warning #18665
...
Problem:
Cannot opt-out of "WARNING: The file has been changed since reading
it!!!", even with ":write!".
Solution:
Change ":write!" to skip the warning.
closes #7270
2022-09-24 18:57:10 -07:00
zeertzjq
c7cf1232a7
vim-patch:8.2.4467: running filetype test leaves file behind ( #20335 )
...
Problem: Running filetype test leaves file behind.
Solution: Delete the file.
0e71b7d4ce
vim-patch:8.2.4466: MS-Windows: illegal memory access in installer
Problem: MS-Windows: illegal memory access in installer when using
"create-directories" as the final argument.
Solution: Check the argument count. (Cam Sinclair, closes vim/vim#9844 )
5c6edf41f9
2022-09-25 09:49:21 +08:00
dundargoc
b0fcdf9f09
vim-patch:9.0.0576: unused loop variables ( #20326 )
...
Problem: Unused loop variables.
Solution: Use a while loop instead. (closes vim/vim#11214 )
b2209f213e
2022-09-25 06:07:59 +08:00
zeertzjq
8317b9199e
fix(input): use click number of last click for mouse drag ( #20300 )
2022-09-24 22:28:41 +08:00
zeertzjq
dfc6c973a3
Merge pull request #20322 from zeertzjq/vim-9.0.0567
...
vim-patch:9.0.{0567,0572}: 'completeopt' "longest" is not used for complete()
2022-09-24 21:42:18 +08:00
zeertzjq
0c77dba9a4
vim-patch:9.0.0572: insert complete tests leave a mapping behind
...
Problem: Insert complete tests leave a mapping behind.
Solution: Use a buffer-local mapping. (closes vim/vim#11211 )
75f4bafabd
2022-09-24 21:17:03 +08:00
zeertzjq
57b731818d
vim-patch:9.0.0567: 'completeopt' "longest" is not used for complete()
...
Problem: 'completeopt' "longest" is not used for complete().
Solution: Also use "longest" for complete(). (Bjorn Linse, closes vim/vim#11206 )
87af60c915
2022-09-24 21:16:43 +08:00
zeertzjq
291a649632
fix(mapset): remove existing abbreviation of same lhs ( #20320 )
2022-09-24 21:07:18 +08:00
zeertzjq
db056de29a
vim-patch:9.0.0568: autocmd code is indented more than needed ( #20318 )
...
Problem: Autocmd code is indented more than needed.
Solution: Break out sooner. (Yegappan Lakshmanan, closes vim/vim#11208 )
Also in user function code.
e9dcf13a30
2022-09-24 19:20:03 +08:00
Christian Clason
f8b656c582
vim-patch:9.0.0566: Nim files are not recognized ( #20317 )
...
Problem: Nim files are not recognized.
Solution: Add patterns for Nim files. (Nbiba Bedis, closes vim/vim#11205 )
9fd1583c83
2022-09-24 12:59:37 +02:00
shaunsingh
caf5738fa9
fix(lsp): create missing directory before creating file ( #19835 )
...
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net>
2022-09-24 12:46:21 +02:00
Christian Clason
24b5449b3d
vim-patch:9.0.0562: HSL playlist files are not recognized ( #20307 )
...
Problem: HSL playlist files are not recognized.
Solution: Add a pattern to recognize HSL palylist files. (Benoît Ryder,
closes vim/vim#11204 )
35fdd9a67d
2022-09-24 10:16:30 +02:00
Mike
14610332b2
fix(lsp): use correct function name in deprecated message ( #20308 )
...
fix: use correct function name in deprecated message
2022-09-23 19:20:56 -06:00
zeertzjq
f3c842058e
vim-patch:9.0.0559: timer test may get stuck at hit-enter prompt ( #20312 )
...
Problem: Timer test may get stuck at hit-enter prompt.
Solution: Feed some more characters.
4ecf16bbf9
2022-09-24 08:10:49 +08:00
Justin M. Keyes
ede66a0b85
fix: cleanup contrib/ #20304
...
- YouCompleteMe is unnecessary since Nvim LSP works well.
- vim-addon-local-vimrc is not needed since we added `.editorconfig`.
- Inline flake8 arguments. Eventually we will remove all python code,
don't need a top-level `.flake8` file meanwhile.
2022-09-23 09:02:16 -07:00
Justin M. Keyes
3fe43917cb
ci: remove contrib/doxygen/ #20303
...
Problem:
- The layout of the doxygen HTML "dev docs" has been broken for 1+ years.
- There is no evidence that anyone uses the doxygen HTML.
- In the meantime since we introduced the doxygen HTML pages, the Nvim
C docstrings have been surfaced in other ways:
- Nvim LSP client
- Generated :help docs like ":help api" and ":help ui".
Solution:
- Remove `contrib/doxygen/` from neovim repo.
- Note: keep `src/Doxyfile`, it is used by `scripts/gen_vimdoc.py`. ☠️
- Remove `doc/dev/` from website. https://github.com/neovim/neovim.github.io/pull/291
- Remove doxygen job from the neovim/doc repo. https://github.com/neovim/doc/pull/28
- Future/ongoing: ":help dev" and other :help docs will continue to be
improved as the "source of truth" for developer-related docs.
ref https://github.com/neovim/neovim/pull/824
2022-09-23 08:36:36 -07:00
dundargoc
600136cfb6
revert: "build: remove unnecessary policy related code" #20289
...
This partially reverts commit 42aeb5c5b1
.
Setting cmake policies is normally not required as
cmake_minimum_required automatically sets these. One exception is cmake
script mode (-P) since it automatically resets all policy changes.
Closes: https://github.com/neovim/neovim/issues/20286
2022-09-23 07:16:17 -07:00
dundargoc
fcd3e53720
ci(cirrus): set clone depth to 2 instead of 1 ( #20295 )
...
Setting CIRRUS_CLONE_DEPTH to 1 occasionally results in "Failed to checkout"
error for unknown reasons. Set it to 2 as a workaround.
2022-09-23 12:57:18 +02:00
zeertzjq
7a70e9587c
test(tabpage_spec): actually test for nvim_win_hide
2022-09-23 10:17:44 +08:00
zeertzjq
9aead1f670
Merge pull request #20299 from zeertzjq/vim-9.0.0550
...
vim-patch:9.0.0550: crash when closing a tabpage and buffer is NULL
2022-09-23 08:02:12 +08:00
zeertzjq
d7052e8e1f
test: add tests for #13549 #20285 #20290
2022-09-23 07:38:22 +08:00
zeertzjq
c28f00b101
vim-patch:9.0.0550: crash when closing a tabpage and buffer is NULL
...
Problem: Crash when closing a tabpage and buffer is NULL.
Solution: Adjust how autocommands are triggered when closing a window.
(closes vim/vim#11198 , closes vim/vim#11197 )
62de54b48d
2022-09-23 07:38:22 +08:00
dundargoc
0760379b41
ci(stylua): change action version to v1 ( #20273 )
...
Changing the action version to v1 allows us to automatically get patch
updates as it points to the latest stable version.
2022-09-22 20:19:38 +02:00
Justin M. Keyes
a867aa45f7
Merge #11967 generate :help HTML with treesitter
2022-09-22 10:03:38 -04:00
Justin M. Keyes
09b64d75bd
feat(docs): gen_help_html.lua
...
Problem:
The :help docs HTML generated is driven by an old awk script
`runtime/doc/makehtml.awk` that is hard to maintain (ad hoc parser and
no one has touched it in decades) and has bugs like:
- https://github.com/neovim/neovim.github.io/issues/96
- https://github.com/neovim/neovim.github.io/issues/97
Solution:
Use Lua + treesitter (https://github.com/vigoux/tree-sitter-vimdoc ) to
generate :help docs HTML. Also validates tag links.
fix https://github.com/neovim/neovim.github.io/issues/96
fix https://github.com/neovim/neovim.github.io/issues/97
TODO:
- delete doc_html build task
- delete runtime/doc/Makefile
- delete makehtml.awk
- delete maketags.awk
OUTPUT:
$ nvim -V1 -es --clean +"lua require('scripts.gen_help_html')"
output dir: /…/neovim.github.io/_site/doc/
generated (207 errors): api.txt => api.html
generated (122 errors): arabic.txt => arabic.html
generated (285 errors): autocmd.txt => autocmd.html
generated (641 errors): builtin.txt => builtin.html
generated (623 errors): change.txt => change.html
generated (65 errors): channel.txt => channel.html
generated (353 errors): cmdline.txt => cmdline.html
generated (3 errors): debug.txt => debug.html
generated (28 errors): deprecated.txt => deprecated.html
generated (193 errors): dev_style.txt => dev_style.html
generated (460 errors): develop.txt => develop.html
generated (19 errors): diagnostic.txt => diagnostic.html
generated (57 errors): diff.txt => diff.html
generated (818 errors): digraph.txt => digraph.html
generated (330 errors): editing.txt => editing.html
generated (368 errors): eval.txt => eval.html
generated (184 errors): fold.txt => fold.html
generated (61 errors): ft_ada.txt => ft_ada.html
generated (0 errors): ft_ps1.txt => ft_ps1.html
generated (20 errors): ft_raku.txt => ft_raku.html
generated (5 errors): ft_rust.txt => ft_rust.html
generated (41 errors): ft_sql.txt => ft_sql.html
generated (110 errors): gui.txt => gui.html
generated (79 errors): hebrew.txt => hebrew.html
generated (17 errors): help.txt => index.html
generated (104 errors): helphelp.txt => helphelp.html
generated (0 errors): if_cscop.txt => if_cscop.html
generated (23 errors): if_perl.txt => if_perl.html
generated (16 errors): if_pyth.txt => if_pyth.html
generated (9 errors): if_ruby.txt => if_ruby.html
generated (216 errors): indent.txt => indent.html
generated (634 errors): index.txt => vimindex.html
generated (320 errors): insert.txt => insert.html
generated (265 errors): intro.txt => intro.html
generated (9 errors): job_control.txt => job_control.html
generated (0 errors): lsp-extension.txt => lsp-extension.html
generated (214 errors): lsp.txt => lsp.html
generated (311 errors): lua.txt => lua.html
generated (592 errors): luaref.txt => luaref.html
generated (798 errors): luvref.txt => luvref.html
generated (663 errors): map.txt => map.html
generated (228 errors): mbyte.txt => mbyte.html
generated (228 errors): message.txt => message.html
generated (0 errors): mlang.txt => mlang.html
generated (761 errors): motion.txt => motion.html
generated (4 errors): nvim.txt => nvim.html
generated (226 errors): nvim_terminal_emulator.txt => nvim_terminal_emulator.html
generated (988 errors): options.txt => options.html
generated (567 errors): pattern.txt => pattern.html
generated (15 errors): pi_gzip.txt => pi_gzip.html
generated (10 errors): pi_health.txt => pi_health.html
generated (27 errors): pi_msgpack.txt => pi_msgpack.html
generated (2177 errors): pi_netrw.txt => pi_netrw.html
generated (41 errors): pi_paren.txt => pi_paren.html
generated (9 errors): pi_spec.txt => pi_spec.html
generated (218 errors): pi_tar.txt => pi_tar.html
generated (0 errors): pi_tutor.txt => pi_tutor.html
generated (235 errors): pi_zip.txt => pi_zip.html
generated (265 errors): print.txt => print.html
generated (31 errors): provider.txt => provider.html
generated (335 errors): quickfix.txt => quickfix.html
generated (572 errors): quickref.txt => quickref.html
generated (109 errors): recover.txt => recover.html
generated (14 errors): remote.txt => remote.html
generated (14 errors): remote_plugin.txt => remote_plugin.html
generated (351 errors): repeat.txt => repeat.html
generated (23 errors): rileft.txt => rileft.html
generated (12 errors): russian.txt => russian.html
generated (6 errors): scroll.txt => scroll.html
generated (106 errors): sign.txt => sign.html
generated (347 errors): spell.txt => spell.html
generated (784 errors): starting.txt => starting.html
generated (1499 errors): syntax.txt => syntax.html
generated (23 errors): tabpage.txt => tabpage.html
generated (257 errors): tagsrch.txt => tagsrch.html
generated (31 errors): term.txt => term.html
generated (0 errors): testing.txt => testing.html
generated (96 errors): tips.txt => tips.html
generated (57 errors): treesitter.txt => treesitter.html
generated (71 errors): uganda.txt => uganda.html
generated (74 errors): ui.txt => ui.html
generated (87 errors): undo.txt => undo.html
generated (17 errors): userfunc.txt => userfunc.html
generated (1 errors): usr_01.txt => usr_01.html
generated (89 errors): usr_02.txt => usr_02.html
generated (293 errors): usr_03.txt => usr_03.html
generated (46 errors): usr_04.txt => usr_04.html
generated (96 errors): usr_05.txt => usr_05.html
generated (54 errors): usr_06.txt => usr_06.html
generated (20 errors): usr_07.txt => usr_07.html
generated (241 errors): usr_08.txt => usr_08.html
generated (130 errors): usr_09.txt => usr_09.html
generated (50 errors): usr_10.txt => usr_10.html
generated (33 errors): usr_11.txt => usr_11.html
generated (32 errors): usr_12.txt => usr_12.html
generated (22 errors): usr_20.txt => usr_20.html
generated (75 errors): usr_21.txt => usr_21.html
generated (8 errors): usr_22.txt => usr_22.html
generated (3 errors): usr_23.txt => usr_23.html
generated (163 errors): usr_25.txt => usr_25.html
generated (13 errors): usr_26.txt => usr_26.html
generated (84 errors): usr_27.txt => usr_27.html
generated (173 errors): usr_28.txt => usr_28.html
generated (285 errors): usr_29.txt => usr_29.html
generated (280 errors): usr_30.txt => usr_30.html
generated (11 errors): usr_31.txt => usr_31.html
generated (13 errors): usr_32.txt => usr_32.html
generated (156 errors): usr_40.txt => usr_40.html
generated (134 errors): usr_41.txt => usr_41.html
generated (35 errors): usr_42.txt => usr_42.html
generated (19 errors): usr_43.txt => usr_43.html
generated (60 errors): usr_44.txt => usr_44.html
generated (13 errors): usr_45.txt => usr_45.html
generated (1 errors): usr_toc.txt => usr_toc.html
generated (69 errors): various.txt => various.html
generated (68 errors): vi_diff.txt => vi_diff.html
generated (437 errors): vim_diff.txt => vim_diff.html
generated (296 errors): visual.txt => visual.html
generated (181 errors): windows.txt => windows.html
generated 119 html pages
total errors: 23862
invalid tags: 537
2022-09-22 15:36:27 +02:00
Justin M. Keyes
40f0851bd8
docs: deprecate :checkhealth vimscript interface
2022-09-22 15:36:27 +02:00
Justin M. Keyes
bde6176c91
feat(treesitter): bundle :help parser and queries
...
parser from https://github.com/vigoux/tree-sitter-vimdoc
queries from nvim-treesitter
2022-09-22 15:36:27 +02:00
zeertzjq
11f91ac304
Merge pull request #20287 from zeertzjq/vim-9.0.0540
...
vim-patch:9.0.{0540,0544}: assigning stack variable to argument confuses Coverity
2022-09-22 21:34:46 +08:00
Lewis Russell
5c1b8d7bf8
docs(lua): correct docs for option accessor metatables ( #20256 )
2022-09-22 14:17:49 +01:00
zeertzjq
4371886293
vim-patch:9.0.0544: minor issues with setting a string option
...
Problem: Minor issues with setting a string option.
Solution: Adjust the code, add a test. (closes vim/vim#11192 )
fcba86c031
2022-09-22 21:09:31 +08:00
zeertzjq
33f1471472
vim-patch:9.0.0540: assigning stack variable to argument confuses Coverity
...
Problem: Assigning stack variable to argument confuses Coverity.
Solution: Use a local pointer, also makes the code simpler.
6f98114e4a
2022-09-22 21:07:54 +08:00
Lewis Russell
679f3072f6
Merge pull request #20103 from lewis6991/refactor/vim_opt
2022-09-22 13:59:04 +01:00
zeertzjq
2083c1771a
fix(window): close floats first when closing buffer in other tab ( #20284 )
2022-09-22 20:25:34 +08:00
zeertzjq
a7f6f0e2dd
vim-patch:9.0.0539: long message test can be flaky ( #20282 )
...
Problem: Long message test can be flaky.
Solution: Wait for more prompt instead of ruler.
21d393a12b
Comment N/A lines out instead of deleting in buftype tests.
2022-09-22 20:18:06 +08:00
bfredl
7fc5f6605f
Merge pull request #20249 from bfredl/cmdmessage
...
fix(redraw): avoid unnecessary redraws and glitches with floats+messages
2022-09-22 11:09:33 +02:00
bfredl
02f8ca59a8
fix(tests): indicate in test logs when nvim exit times out
...
When it happens it wastes 2 seconds which is NOT included in the
normal busted timing info. It is hard to correct this, but we
can at least print a warning when this happens.
2022-09-22 10:38:11 +02:00
bfredl
93b30582db
fix(redraw): make redrawdebug=nodelta handle all the cases
...
Before only win_line lines were considered. this applies nodelta
to all screen elements. Causes some failures, which might indeed
indicate excessive redraws.
2022-09-22 10:38:10 +02:00
bfredl
00cfc1dceb
fix(redraw): avoid unnecessary redraws and glitches with floats+messages
...
fixes #20106
fixes #20229
2022-09-22 10:36:23 +02:00