aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge pull request #15767 from lewis6991/lua_var_indexBjörn Linse2021-10-19
|\ | | | | feat(lua): allow passing handles to `vim.b/w/t`
| * feat(lua): allow passing handles to vim.b/w/tLewis Russell2021-10-19
| | | | | | | | | | | | vim.bo can target a specific buffer by indexing with a number, e.g: `vim.bo[2].filetype` can get/set the filetype for buffer 2. This change replicates that behaviour for the variable namespace.
* | fix(gen_vimdoc.py): spacing around inline elements #16092Gregory Anders2021-10-19
|/ | | | | The spacing fix drew attention to a couple of places that were using incorrect formatting such as the key listing for `nvim_open_win`, so those were fixed too.
* refactor(diagnostic)!: replace 'show_*' functions with 'open_float' (#16057)Gregory Anders2021-10-19
| | | | | | | | | | | | | | | | | | | | 'show_line_diagnostics()' and 'show_position_diagnostics()' are almost identical; they differ only in the fact that the latter also accepts a column to form a full position, rather than just a line. This is not enough to justify two separate interfaces for this common functionality. Renaming this to simply 'show_diagnostics()' is one step forward, but that is also not a good name as the '_diagnostics()' suffix is redundant. However, we cannot name it simply 'show()' since that function already exists with entirely different semantics. Instead, combine these two into a single 'open_float()' function that handles all of the cases of showing diagnostics in a floating window. Also add a "float" key to 'vim.diagnostic.config()' to provide global values of configuration options that can be overridden ephemerally. This makes the float API consistent with the rest of the diagnostic API. BREAKING CHANGE
* feat(lsp): set codelens virtual text hl_mode to combine (#16048)sim2021-10-19
| | | | | It looks a bit off with the extmark going over the cursorline. (With hl_mode combine it keeps the background of the cursorline under the codelens virtualtext)
* vim-patch:8.2.3537: wrong mode() during 'operatorfunc' #16087zeertzjq2021-10-19
| | | | | Problem: mode() does not return the right value in 'operatorfunc'. Solution: Reset finish_op while calling 'operatorfunc'. https://github.com/vim/vim/commit/75c30e96cf280a8cc01ac01c41a9252db3e503cc
* docs: clarify chdir/CWD behaviors #16083zeertzjq2021-10-19
|
* fix(api/nvim_eval_statusline): allow maxwidth=0 #16080Famiu Haque2021-10-19
| | | | Allows disabling statusline truncation by allowing maxwidth to be set to 0 in `nvim_eval_statusline`.
* feat(man.vim): convert spaces to underscores #16068William Chargin2021-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | PostgreSQL ships with man pages for SQL statements like `CREATE TABLE`, which are provided with underscores as `man 7 CREATE_TABLE`. This patch updates `man#open_page` (as used by `:Man`) such that visually selecting the words `CREATE TABLE` in SQL code and pressing `K` properly opens the desired man page. Writing `:Man CREATE TABLE` still does not work, since `CREATE` is interpreted as a section name. (Similarly, `:Man CREATE TABLE AS` fails because there are too many arguments to `:Man`.) But this is okay, because if you're typing it anyway then you can just enter underscores and also tab-completion properly suggests `:Man CREATE_TABLE(7)`. This is a bit bespoke, but my box has over 9000 man pages (as reported by `man -k '' | wc -l`), and not one of them has a space in the man page name, whereas the Postgres manuals do exist and are actually useful. Test Plan: On a machine with Postgres manual pages, running nvim -u NORC +'exe "norm iCREATE TABLE foo(x int);" | norm 0veeK' should open the appropriate man page. wchargin-branch: man-spaces-to-underscores
* Merge #16000 refactor: uncrustifyJustin M. Keyes2021-10-19
|\
| * refactor: remove space after starDundar Göc2021-10-19
| |
| * refactor: make commas trail in enumsDundar Göc2021-10-19
| |
| * refactor: enable formatting for files under libDundar Göc2021-10-19
|/
* docs: regenerate (#15986)github-actions[bot]2021-10-19
| | | Co-authored-by: marvim <marvim@users.noreply.github.com>
* Merge pull request #16084 from dundargoc/ci/commitlint/checkout-branch-directlyJames McCoy2021-10-19
|\ | | | | ci(commitlint): use action to checkout to pr branch directly
| * ci(commitlint): use action to checkout to pr branch directlyDundar Göc2021-10-19
|/
* feat(api): evaluate statusline string #16020Famiu Haque2021-10-18
| | | | | | Adds API function `nvim_eval_statusline` to allow evaluating a statusline string and obtaining information regarding it. Closes https://github.com/neovim/neovim/issues/15849
* feat(lsp): use vim.ui.select() in codelenses (#16004)Josa Gesell2021-10-18
| | | Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com> Mathias Fußenegger <mfussenegger@users.noreply.github.com>
* fix(lsp): fix cursor row after textEdits (#16038)hrsh7th2021-10-18
|
* fix(lsp): persist diagnostic config for clientsGregory Anders2021-10-18
| | | | | Persist configuration settings set with `vim.lsp.with` and `vim.lsp.diagnostic.on_publish_diagnostics` by setting the config for the namespace associated with the client.
* Merge pull request #16034 from rcowsill/ci/labeler/no-checkoutJames McCoy2021-10-17
|\ | | | | ci(labeler): Remove checkout steps
| * ci(labeler): Remove checkout stepsRob Cowsill2021-10-15
| | | | | | Sets GH_REPO and passes PR number to `gh`, making checkout unnecessary
* | refactor: convert to doxygen-style comments #16013dundargoc2021-10-17
| |
* | fix(PVS/V1028): prevent possible overflow #16023dundargoc2021-10-17
| | | | | | | | | | | | Full warning: "Possible overflow. Consider casting operands, not the result." https://pvs-studio.com/en/docs/warnings/v1028/
* | Merge pull request #15999 from famiu/fix/build/export-windows-symbolsBjörn Linse2021-10-17
|\ \ | | | | | | fix(build): export symbols on Windows
| * | fix(build): export symbols on WindowsFamiu Haque2021-10-17
| | | | | | | | | | | | | | | | | | Closes https://github.com/neovim/neovim/issues/15063 Allows using Neovim core functions using LuaJIT FFI on Windows.
* | | Merge pull request #15973 from bfredl/luapathBjörn Linse2021-10-17
|\ \ \ | | | | | | | | fix(runtime): don't use regexes inside lua require'mod'
| * | | fix(runtime): don't use regexes inside lua require'mod'Björn Linse2021-10-17
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #15147 and fixes #15497. Also sketch "subdir" caching. Currently this only caches whether an rtp entry has a "lua/" subdir but we could consider cache other subdirs potentially or even "lua/mybigplugin/" possibly. Note: the async_leftpad test doesn't actually fail on master, at least not deterministically (even when disabling the fast_breakcheck throttling). It's still useful as a regression test for further changes and included as such.
* | | Merge pull request #15952 from zeertzjq/vim-8.1.1291Jan Edmund Lazo2021-10-17
|\ \ \ | | | | | | | | vim-patch:8.0.{1459,1460,1461,1463},8.1.{0602,0604,1291},8.2.{0189,0876,0909,1411}: chdir and DirChanged related patches
| * | | test(dirchanged): add tests for DirChanged pattern "auto"zeertzjq2021-10-17
| | | |
| * | | refactor(dirchanged): tab -> tabpagezeertzjq2021-10-17
| | | | | | | | | | | | | | | | Match Vim's behavior.
| * | | vim-patch:8.2.1411: when splitting a window localdir is copied but prevdir ↵zeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is not Problem: when splitting a window localdir is copied but prevdir is not. Solution: Also copy prevdir. (closes vim/vim#6667) https://github.com/vim/vim/commit/a9a47d157ab1946d1e286c9695bc68d71305af68
| * | | vim-patch:8.2.0909: cannot go back to the previous local directoryzeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot go back to the previous local directory. Solution: Add "tcd -" and "lcd -". (Yegappan Lakshmanan, closes vim/vim#4362) https://github.com/vim/vim/commit/002bc79991286934a9593b80635c27d4238cdfc4
| * | | vim-patch:8.2.0876: :pwd does not give a hint about the scope of the directoryzeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: :pwd does not give a hint about the scope of the directory Solution: Make ":verbose pwd" show the scope. (Takuya Fujiwara, closes vim/vim#5469) https://github.com/vim/vim/commit/950587242cad52d067a15f0f0c83528a28f75731
| * | | vim-patch:8.2.0189: cd() with NULL argument crasheszeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: cd() with NULL argument crashes. Solution: Check for NULL. (Ken Takata, closes vim/vim#5558) https://github.com/vim/vim/commit/7cc96923c44bbcc541cbd211b6308d87a965f0c3
| * | | test: partially port Vim patches 8.1.2278 and 8.2.1432zeertzjq2021-10-17
| | | |
| * | | vim-patch:8.1.1291: not easy to change directory and restorezeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Not easy to change directory and restore. Solution: Add the chdir() function. (Yegappan Lakshmanan, closes vim/vim#4358) https://github.com/vim/vim/commit/1063f3d2008f22d02ccfa9dab83a23db52febbdc Also includes some documentation changes from patch 8.1.1218.
| * | | vim-patch:8.1.0604: autocommand test fails on MS-Windowszeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Autocommand test fails on MS-Windows. Solution: Use pathcmp() instead of strcmp() to check if a directory differs. https://github.com/vim/vim/commit/9eb76af451ddd8eaad0cd5dd629f18c4f4035171
| * | | vim-patch:8.1.0602: DirChanged is also triggered when directory didn't changezeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: DirChanged is also triggered when the directory didn't change. (Daniel Hahler) Solution: Compare the current with the new directory. (closes vim/vim#3697) https://github.com/vim/vim/commit/2caad3fbbdbf1486a176c9f6bfbc3d9be90e09f7
| * | | vim-patch:8.0.1463: test fails without 'autochdir' optionzeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Test fails without 'autochdir' option. Solution: Skip test if 'autochdir' is not supported. https://github.com/vim/vim/commit/ec48a9c58989babcad23d73483955f35b6e41492
| * | | vim-patch:8.0.1459: cannot handle change of directoryzeertzjq2021-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot handle change of directory. Solution: Add the DirChanged autocommand event. (Andy Massimino, closes vim/vim#888) Avoid changing directory for 'autochdir' too often. https://github.com/vim/vim/commit/b7407d3fc9496f9048fb65ab17b5ba3444965c0e Only add "auto" pattern. "window" and "global" are already implemented. Skip `Test_dirchanged_auto` using `CheckFunction test_autochdir`. Part of PR #15952. More information can be found there. N/A patches for version.c: vim-patch:8.0.1460: missing file in patch Problem: Missing file in patch. Solution: Add changes to missing file. https://github.com/vim/vim/commit/b5cb65ba2bcc6bbc6d2798a2dea18b95f0b38f5e vim-patch:8.0.1461: missing another file in patch Problem: Missing another file in patch. Solution: Add changes to missing file. https://github.com/vim/vim/commit/15833239a4131279935a4bd574b74fe3a2b0f49f
* | | | Merge pull request #15930 from dundargoc/vim-patch/old-style-c-commentsJan Edmund Lazo2021-10-17
|\ \ \ \ | | | | | | | | | | vim-patch:8.1.2396,8.1.2395,8.1.2394,8.1.2392,8.1.2368,8.1.2388,8.1.2379
| * | | | fixup! vim-patch:8.1.2379: using old C style commentsDundar Göc2021-10-17
| | | | |
| * | | | fixup! vim-patch:8.1.2388: using old C style commentsDundar Göc2021-10-16
| | | | |
| * | | | fixup! vim-patch:8.1.2379: using old C style commentsDundar Göc2021-10-16
| | | | |
| * | | | fixup! vim-patch:8.1.2396: using old C style commentsDundar Göc2021-10-16
| | | | |
| * | | | vim-patch:8.1.2379: using old C style commentsDundar Göc2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/217e1b8359447f5550dcb0d1ee43380a90c253c5
| * | | | vim-patch:8.1.2388: using old C style commentsDundar Göc2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/4ba37b5833de99db9e9afe8928b31c864182405c
| * | | | vim-patch:8.1.2368: using old C style commentsDundar Göc2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/c667da5185ce5dce914d2006d62da2be0cedb384
| * | | | vim-patch:8.1.2392: using old C style commentsDundar Göc2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/6e0ce171e19d0118ecd7c2b16e2a1bd50aa76013