aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* build(lua2dox): add parenthesis around parameter types in documentation (#18532)dundargoc2022-05-12
| | | | | | | | | | This will check if the string after the variable in a @param is either "number", "string", "table", "boolean" and "function" and if so add a parenthesis around it. This will help separate the variable type with the following text. Had all our functions been annotated with emmylua then a more robust solution might have been preferable (such as always assuming the third string is parameter type without making any checks). I believe however this is a clear improvement over the current situation and will suffice for now.
* feat(lua): vim.cmd() with kwargs acts like nvim_cmd() #18523Famiu Haque2022-05-12
|
* fix(terminal): invalid pointer comparison #18453Clément Bœsch2022-05-12
| | | | | | | | | | | | | | | At the moment of comparison, the pointer save_curwin can be invalid (as suggested by the comment) because it has been free'd. Worst, the new curwin could have been re-allocated to that same pointer, altering the execution flow unpredictably. While there are many other potential similar cases to fix in the codebase, the presented scenario is not hypothetical and does happen in practice (while spawning new windows from fzf for instance). There are numerous other instances of curwin comparisons in the codebase, and they may need further investigation. closes #16941
* refactor: rename keymap.{c,h} to keycodes.{c,h} (#18535)zeertzjq2022-05-12
| | | | | | | | Most code in keymap.h is for keycode definitions, while most code in keymap.c is for the parsing and conversion of keycodes. The name "keymap" may also make people think these two files are for mappings, while in fact keycodes are used even when no mappings are involved, so "keycodes" should be a better file name than "keymap".
* ci(bsd): conditional runs for faster builds #18439kylo2522022-05-11
| | | | | | | | (undocumented) sourcehut feature for conditionally running consequent tasks. ref: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C3cd90a91b7ce113bb3c5f07898c77543%40hacktivista.com%3E https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/item/worker/tasks.go#L196-198
* fix(runtime/genvimvim): omit s[ubstitute] from vimCommand #18480Sean Dewar2022-05-11
| | | | | | | | | | | | | | | | | | | | It's special cased by the vimSubst syntax group, and isn't present in Vim's vimCommand group. For example, this fixes `call s:Foo()` highlighting `:` as Error in Nvim, as the `s` is parsed as vimCommand rather than as vimUserFunc since `contains=vimCommand` was added to vimUserFunc (and vimFunc) in a rt update. Interestingly, `g:`, `l:`, etc. have the same issues due to :global, :list, etc. Vim also has that problem, so it should ideally be fixed upstream. We could also omit g[lobal] from vimCommand and rely on vimGlobal instead, but it doesn't work in some cases, like when there's a `:` before the command. Also, Vim matches only `g` in vimCommand for some reason, which doesn't produce any highlight for `:global/foo/bar` (with Nvim you at least get some highlights on the `global` bit despite the leading `:`). Also, remove special handling of :py3 in syntax/vim.vim, as the generator seems to have no problems finding it.
* docs: nvim_buf_[get|set]_[text|lines] (#18404)Andrey Mishchenko2022-05-11
| | | | - Use consistent formatting for args docs. - Clarify inclusivity/exclusivity in `nvim_buf_[get|set]_text`.
* docs(api): how to check if window is floating #18503Andrey Mishchenko2022-05-11
|
* fix(api): make `nvim_cmd` work correctly with empty arguments list (#18527)Famiu Haque2022-05-11
| | | Closes #18526.
* docs(api): improve shared lua functions docs (#17933)adrian52022-05-11
|
* vim-patch:8.2.4939: matchfuzzypos() with "matchseq" does not have all ↵zeertzjq2022-05-11
| | | | | | | positions (#18525) Problem: matchfuzzypos() with "matchseq" does not have all positions. Solution: Also add a position for white space. (closes vim/vim#10404) https://github.com/vim/vim/commit/9af2bc075169e14fd06ed967d28eac7206d21f36
* Merge pull request #18522 from zeertzjq/vim-8.2.4901zeertzjq2022-05-11
|\ | | | | vim-patch:8.2.{4901,4938}: NULL pointer access when using invalid pattern
| * vim-patch:8.2.4938: crash when matching buffer with invalid patternzeertzjq2022-05-11
| | | | | | | | | | | | Problem: Crash when matching buffer with invalid pattern. Solution: Check for NULL regprog. https://github.com/vim/vim/commit/a59f2dfd0cf9ee1a584d3de5b7c2d47648e79060
| * vim-patch:8.2.4901: NULL pointer access when using invalid patternzeertzjq2022-05-11
|/ | | | | | Problem: NULL pointer access when using invalid pattern. Solution: Check for failed regexp program. https://github.com/vim/vim/commit/8e4b76da1d7e987d43ca960dfbc372d1c617466f
* Merge pull request #18366 from famiu/feat/api/nvim_cmdbfredl2022-05-11
|\ | | | | feat(api): add `nvim_cmd`
| * feat(api): add `nvim_cmd`Famiu Haque2022-05-11
| | | | | | | | Adds the API function `nvim_cmd` which allows executing an Ex-command through a Dictionary which can have the same values as the return value of `nvim_parse_cmd()`. This makes it much easier to do things like passing arguments with a space to commands that otherwise may not allow it, or to make commands interpret certain characters literally when they otherwise would not.
| * feat(keyset): allow hash conflictsbfredl2022-05-09
| |
* | chore: git-blame-ignore stylua format PR (#18516)Christian Clason2022-05-11
| | | | | | | | add https://github.com/neovim/neovim/commit/aefdc6783cb77f09786542c90901a9e7120bea42 to .git-blame-ignore-revs
* | build(deps): bump Luv to HEAD - c51e7052e (#18510)Christian Clason2022-05-11
| |
* | Merge pull request #18487 from clason/styluaChristian Clason2022-05-11
|\ \ | | | | | | CI: format and lint runtime with Stylua
| * | chore: format runtime with styluaChristian Clason2022-05-09
| | |
| * | ci: lint runtime with styluaChristian Clason2022-05-09
| | |
* | | vim-patch:921bde888046 (#18511)Christian Clason2022-05-10
| | | | | | | | | | | | | | | | | | | | | Update runtime files, translations https://github.com/vim/vim/commit/921bde88804663a7cb825d7f7e8a5d8ae6b58650 skip: translations skip: builtin.txt (requires 8.2.4861)
* | | Merge pull request #18509 from zeertzjq/vim-8.2.4929zeertzjq2022-05-10
|\ \ \ | | | | | | | | vim-patch:8.2.4929: off-by-one error in in statusline item
| * | | test: convert two statusline oldtests to Lua screen testszeertzjq2022-05-10
| | | |
| * | | vim-patch:8.2.4929: off-by-one error in in statusline itemzeertzjq2022-05-10
|/ / / | | | | | | | | | | | | | | | Problem: Off-by-one error in in statusline item. Solution: Subtrace one less. (closes vim/vim#10394, closes vim/vim#5599) https://github.com/vim/vim/commit/57ff52677bf5ba1651281ffe40505df8feba4a36
* | | vim-patch:8.2.4911: the mode #defines are not clearly named (#18499)zeertzjq2022-05-10
| | | | | | | | | | | | | | | | | | | | | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first. https://github.com/vim/vim/commit/249591057b4840785c50e41dd850efb8a8faf435 A hunk from the patch depends on patch 8.2.4861, which hasn't been ported yet, but that should be easy to notice.
* | | docs(lsp): fix description of `only` in vim.lsp.buf.code_action() (#18492)Fredrik Ekre2022-05-09
| |/ |/|
* | vim-patch:8.2.4925: trailing backslash may cause reading past end of line ↵zeertzjq2022-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#18493) Problem: Trailing backslash may cause reading past end of line. Solution: Check for NUL after backslash. https://github.com/vim/vim/commit/53a70289c2712808e6d4e88927e03cac01b470dd N/A patches for version.c: vim-patch:8.2.4926: #ifdef for crypt feature around too many lines Problem: #ifdef for crypt feature around too many lines. Solution: Move code outside of #ifdef. (closes vim/vim#10388) https://github.com/vim/vim/commit/51f0bc31d3cf512508419064faac0e5b7e52c98b
* | Merge pull request #18491 from zeertzjq/vim-8.2.4924zeertzjq2022-05-09
|\ \ | | | | | | vim-patch:8.2.4924: maparg() may return a string that cannot be reused
| * | vim-patch:8.2.4924: maparg() may return a string that cannot be reusedzeertzjq2022-05-09
|/ / | | | | | | | | | | | | Problem: maparg() may return a string that cannot be reused. Solution: use msg_outtrans_special() instead of str2special(). (closes vim/vim#10384) https://github.com/vim/vim/commit/0519ce00394474055bd58c089ea90a19986443eb
* | Merge pull request #18490 from zeertzjq/vim-8.2.4918zeertzjq2022-05-09
|\ \ | | | | | | vim-patch:8.2.{4918,4923}: conceal character from matchadd() displayed too many times
| * | vim-patch:8.2.4923: test checks for terminal feature unnecessarilyzeertzjq2022-05-09
| | | | | | | | | | | | | | | | | | Problem: Test checks for terminal feature unnecessarily. Solution: Remove CheckRunVimInTerminal. (closes vim/vim#10383) https://github.com/vim/vim/commit/194843028ed486366b89e8f7d3bdd611a11ce7b4
| * | vim-patch:8.2.4918: conceal character from matchadd() displayed too many timeszeertzjq2022-05-09
|/ / | | | | | | | | | | Problem: Conceal character from matchadd() displayed too many times. Solution: Check the syntax flag. (closes vim/vim#10381, closes vim/vim#7268) https://github.com/vim/vim/commit/9830db63057db76044eca89cc4cfb2758ae7a543
* | Merge pull request #18485 from zeertzjq/vim-8.2.4915zeertzjq2022-05-09
|\ \ | | | | | | vim-patch:8.2.{4916,4922}: mouse in Insert mode test fails
| * | vim-patch:8.2.4922: mouse test fails on MS-Windowszeertzjq2022-05-09
| | | | | | | | | | | | | | | | | | Problem: Mouse test fails on MS-Windows. Solution: Set 'mousemodel' to "extend". https://github.com/vim/vim/commit/b370771bffc8395204f53209b69e35dff95a9237
| * | vim-patch:8.2.4916: mouse in Insert mode test failszeertzjq2022-05-09
|/ / | | | | | | | | | | | | | | | | Problem: Mouse in Insert mode test fails. Solution: Fix the text and check relevant positions. https://github.com/vim/vim/commit/8e8dc9b32326c6fbd37671b6072296404b481d4a Use nvim_input_mouse() to set mouse position, and discard mouse event using getchar().
* | Merge pull request #18466 from dundargoc/refactor/remove-char_ubfredl2022-05-09
|\| | | | | refactor: replace char_u variables and functions with char
| * refactor: replace char_u variables and functions with charDundar Goc2022-05-09
|/ | | | Work on https://github.com/neovim/neovim/issues/459
* feat: cmdline funcs (#18284)Shougo2022-05-09
| | | | | | | | | | | | | | vim-patch:8.2.4903: cannot get the current cmdline completion type and position Problem: Cannot get the current cmdline completion type and position. Solution: Add getcmdcompltype() and getcmdscreenpos(). (Shougo Matsushita, closes vim/vim#10344) https://github.com/vim/vim/commit/79d599b8772022af1d657f368c2fc97aa342c0da vim-patch:8.2.4910: imperfect coding Problem: Imperfect coding. Solution: Make code nicer. https://github.com/vim/vim/commit/9ff7d717aa3176de5c61de340deb93f41c7780fc
* Merge pull request #18478 from bfredl/gridfilebfredl2022-05-09
|\ | | | | refactor(grid): move out grid_* functions from screen.c
| * refactor(grid): move out grid_* functions from screen.cbfredl2022-05-08
| | | | | | | | | | Also normalize some types. use "size_t" for unsigned array offsets. Fix -Wconversion issues missed as screen.c is missing this check.
* | fix(lsp): detach spawned LSP server processes (#18477)Gregory Anders2022-05-08
|/ | | | | | | | LSP servers should be daemonized (detached) so that they run in a separate process group from Neovim's. Among other things, this ensures the process does not inherit Neovim's TTY (#18475). Make this configurable so that clients can explicitly opt-out of detaching from Nvim.
* vim-patch:partial:d899e5112079 (#18474)Sean Dewar2022-05-08
| | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/d899e51120798d3fb5420abb1f19dddf3f014d05 - Skip vimhelp.vim stuff (syntax/help.vim, syntax.txt; v8.2.4891). - Skip :let heredoc eval stuff (eval.txt; v8.2.4770). - Skip uk.cp1251.po. - Skip `*hl-CurSearch*` change (syntax.txt): - Vim's CurSearch works differently (Nvim's uses current cursor pos). Dunno know how applicable the redrawing comment is to Nvim... - Might be preferred to move it under `*hl-Search*` like Vim?
* vim-patch:8.2.4908: no text formatting for // comment after a statement (#18472)zeertzjq2022-05-08
| | | | | Problem: No text formatting for // comment after a statement. Solution: format a comment when the 'c' flag is in 'formatoptions'. https://github.com/vim/vim/commit/48a8a833033e10fc1eba96f2fc8dd19c2408eddf
* vim-patch:8.2.4907: some users do not want a line comment always inserted ↵Christian Clason2022-05-07
| | | | | | | | (#18463) Problem: Some users do not want a line comment always inserted. Solution: Add the '/' flag to 'formatoptions' to not repeat the comment leader after a statement when using "o". https://github.com/vim/vim/commit/2bf875f881f7c6f6900bc0eb2a93a552db894109
* Merge pull request #18425 from dundargoc/refactor/char_u/1bfredl2022-05-07
|\ | | | | refactor: replace char_u variables and functions with char
| * refactor: replace char_u variables and functions with charDundar Goc2022-05-07
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
* | Merge pull request #18460 from bfredl/decor33bfredl2022-05-07
|\ \ | | | | | | refactor(decor): use decor levels properly
| * | refactor(decor): use decor levels properlybfredl2022-05-07
| | |