aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* | | feat(lua): improve error message to make it actionable (#13276)Alvaro Muñoz2020-11-13
| | | | | | | | | * improve error message to make it actionable
* | | lsp: vim.lsp.diagnostic (#12655)TJ DeVries2020-11-12
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Breaking Changes: - Deprecated all `vim.lsp.util.{*diagnostics*}()` functions. - Instead, all functions must be found in vim.lsp.diagnostic - For now, they issue a warning ONCE per neovim session. In a "little while" we will remove them completely. - `vim.lsp.callbacks` has moved to `vim.lsp.handlers`. - For a "little while" we will just redirect `vim.lsp.callbacks` to `vim.lsp.handlers`. However, we will remove this at some point, so it is recommended that you change all of your references to `callbacks` into `handlers`. - This also means that for functions like |vim.lsp.start_client()| and similar, keyword style arguments have moved from "callbacks" to "handlers". Once again, these are currently being forward, but will cease to be forwarded in a "little while". - Changed the highlight groups for LspDiagnostic highlight as they were inconsistently named. - For more information, see |lsp-highlight-diagnostics| - Changed the sign group names as well, to be consistent with |lsp-highlight-diagnostics| General Enhancements: - Rewrote much of the getting started help document for lsp. It also provides a much nicer configuration strategy, so as to not recommend globally overwriting builtin neovim mappings. LSP Enhancements: - Introduced the concept of |lsp-handlers| which will allow much better customization for users without having to copy & paste entire files / functions / etc. Diagnostic Enhancements: - "goto next diagnostic" |vim.lsp.diagnostic.goto_next()| - "goto prev diagnostic" |vim.lsp.diagnostic.goto_prev()| - For each of the gotos, auto open diagnostics is available as a configuration option - Configurable diagnostic handling: - See |vim.lsp.diagnostic.on_publish_diagnostics()| - Delay display until after insert mode - Configure signs - Configure virtual text - Configure underline - Set the location list with the buffers diagnostics. - See |vim.lsp.diagnostic.set_loclist()| - Better performance for getting counts and line diagnostics - They are now cached on save, to enhance lookups. - Particularly useful for checking in statusline, etc. - Actual testing :) - See ./test/functional/plugin/lsp/diagnostic_spec.lua - Added `guisp` for underline highlighting NOTE: "a little while" means enough time to feel like most plugins and plugin authors have had a chance to refactor their code to use the updated calls. Then we will remove them completely. There is no need to keep them, because we don't have any released version of neovim that exposes these APIs. I'm trying to be nice to people following HEAD :) Co-authored: [Twitch Chat 2020](https://twitch.tv/teej_dv)
* | Add PVS comment to new source filesJames McCoy2020-11-10
| |
* | Merge pull request #13244 from tk-shirasaka/fix/multigrid-click-foldcolumnMatthieu Coudron2020-11-10
|\ \ | | | | | | ui: Fix click on foldcolumn when ext_multigrid is enabled
| * | Add test case for fold on multigridshirasaka2020-11-09
| | |
* | | Merge pull request #13205 from romgrk/add-bufmodified-autocmdBjörn Linse2020-11-09
|\ \ \ | |/ / |/| | Implement BufModifiedSet autocmd
| * | test: update BufModifiedSet to be paranoidRom Grk2020-11-09
| | |
| * | test: fix BufModifiedSetRom Grk2020-11-07
| | |
| * | tests: add functional test for BufModifiedSetRom Grk2020-11-07
| | |
* | | Add v:event flag on DirChanged signaling switching window (#13153)Andrea Cedraro2020-11-07
|/ / | | | | Closes #9909
* | Merge pull request #13117 from romgrk/add-scroll-eventsBjörn Linse2020-11-07
|\ \ | | | | | | Implement scroll autocommand
| * | my fight with the linter (tome II)Rom Grk2020-11-06
| | |
| * | Merge branch 'master' into add-scroll-eventsRom Grk2020-11-03
| |\ \
| * | | tests: separate scroll test for horizontal/vertical scrollRom Grk2020-10-31
| | | |
| * | | tests: make scroll tests passRom Grk2020-10-30
| | | |
| * | | tests: add functional test for WinScrolledRom Grk2020-10-28
| | | |
| * | | tests: add test for Scroll autocmdRom Grk2020-10-24
| | | |
* | | | lua: make vim.inspect available early so it can be used for path debuggingBjörn Linse2020-11-05
| | | |
* | | | tree-sitter: ignore some tests on windowsThomas Vigouroux2020-11-03
| |/ / |/| | | | | | | | | | | Weirdl this test is failing, but can't reproduce locally, this is an unnecessary blocker for this PR.
* | | fixup! startup: handle autoload and lua packages during startupJan Edmund Lazo2020-11-02
| | |
* | | startup: handle autoload and lua packages during startupBjörn Linse2020-11-02
| | | | | | | | | | | | ¡NO HAY BANDA!
* | | Merge pull request #12870 from bfredl/themeparkBjörn Linse2020-11-01
|\ \ \ | | | | | | | | Color themes (per window/line) and lua theme providers
| * | | api: add API for themesBjörn Linse2020-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
* | | | Merge pull request #13197 from janlazo/vim-8.2.1925Jan Edmund Lazo2020-11-01
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.{639,666,1925,1926,1929,1932}
| * | | | vim-patch:8.2.1925: list/dict test failsJan Edmund Lazo2020-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: List/dict test fails. Solution: Correct expected exception. https://github.com/vim/vim/commit/6d967125ad87b1c2a9467357286c3514d5dd1c40 Cherry-pick e_dictkey[] change from patch 8.2.1924. N/A patches for version.c: vim-patch:8.2.1929: MS-Windows: problem loading Perl 5.32 Problem: MS-Windows: problem loading Perl 5.32. Solution: Define NO_THREAD_SAFE_LOCALE. (Ken Takata, closes vim/vim#7234) https://github.com/vim/vim/commit/0289065e41ce3148f929e16a55aa3b161c80576f vim-patch:8.2.1932: compiler warnings when building with Athena GUI Problem: Compiler warnings when building with Athena GUI. Solution: Fix function signatures. https://github.com/vim/vim/commit/963734e316bd17dd7290abcac28b875435d06381
* | | | | Merge pull request #13192 from bfredl/nodeidBjörn Linse2020-11-01
|\ \ \ \ \ | |/ / / / |/| | | | ] treesitter: add node:id()
| * | | | treesitter: add node:id()Björn Linse2020-11-01
| |/ / /
* | | | Merge pull request #13167 from romgrk/vim-8.2.1909Jan Edmund Lazo2020-10-31
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.1909: number of status line items is limited to 80
| * | | | vim-patch:8.2.1909: number of status line items is limited to 80Rom Grk2020-10-31
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Number of status line items is limited to 80. Solution: Dynamically allocate the arrays. (Rom Grk, closes vim/vim#7181) https://github.com/vim/vim/commit/8133cc6bf454eb90bb0868f7cf806fce5c0c9fe6 The members of stl_item_T have not been prefixed with stl_ contrary to the vim patch because the amount of stl_ prefixes on single lines of code in that region was hurtful to readability.
* / / / vim-patch:8.2.0131: command line is not cleared when switching tabsJan Edmund Lazo2020-10-29
|/ / / | | | | | | | | | | | | | | | | | | | | | Problem: Command line is not cleared when switching tabs and the command line height differs. Solution: Set the "clear_cmdline" flag when needed. (Naruhiko Nishino, closes vim/vim#5495) https://github.com/vim/vim/commit/479950f6c9aee4806f28a2b2fe5471e18a034cff
* | | Merge pull request #13154 from fsouza/fix-callback-logicMatthieu Coudron2020-10-25
|\ \ \ | | | | | | | | [RDY] lsp: fix fallback for callback in method_unsupported
| * | | lsp: fix fallback for callback in method_unsupportedfrancisco souza2020-10-25
| | | | | | | | | | | | | | | | Missed this #12764. My bad :((
* | | | Merge pull request #13077 from tjdevries/tjdevries/buf_apis_1Björn Linse2020-10-25
|\ \ \ \ | |/ / / |/| | | api: nvim_buf_delete
| * | | api: nvim_buf_deleteTJ DeVries2020-10-22
| | | |
* | | | lsp: only send buf requests to servers that support the request (#12764)francisco souza2020-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactors how required capabilities are detected and validated, and make sure requests are only sent to clients that support it (and only fail if no clients support the provided method). The validation happens at the buf_request level, because we assume that if someone is sending the request directly through the client, they know what they're doing. Also, let unknown methods go through. This is extracted from #12518 and closes #12755. Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
* | | | Fix popupmenu position issueerw72020-10-23
|/ / /
* / / vim-patch:8.1.1056: no eval function for RubyAlex Genco2020-10-21
|/ / | | | | | | | | | | Problem: No eval function for Ruby. Solution: Add rubyeval(). (Ozaki Kiichi, closes vim/vim#4152) https://github.com/vim/vim/commit/e99be0e6d28fad96efd2b2be23fa38e7559e80e1
* | Merge pull request #13118 from bfredl/mudhollandBjörn Linse2020-10-19
|\ \ | | | | | | A Mudholland Dr. Recast
| * | A Mudholland Dr. RecastBjörn Linse2020-10-19
| | | | | | | | | | | | | | | The commit summary maybe does not make sense, but calling a function that does not wait on anything `wait()` makes even less sense.
* | | Merge pull request #12053 from tjdevries/tjdevries/nicer_validateTJ DeVries2020-10-17
|\ \ \ | |/ / |/| | vim.validate(): include stacktrace in message
| * | test/vim.validate(): assert normalized stacktraceJustin M. Keyes2020-10-05
| | | | | | | | | | | | | | | | | | | | | - The previous commit lost information in the tests. Instead, add some more "normalization" substitutions in pcall_err(), so that the general shape of the stacktrace is included in the asserted text. - Eliminate contains(), it is redundant with matches()
| * | vim.validate(): include stacktrace in messageTJ DeVries2020-10-05
| | |
* | | treesitter: allow custom parser for highlighterThomas Vigouroux2020-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also allow to get parser ranges. This will be useful for language injection, allowing us to tweak the parser's ranges on the fly. Update runtime/lua/vim/treesitter.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* | | Merge pull request #13059 from vigoux/ts-runtime-queriesBjörn Linse2020-10-12
|\ \ \ | | | | | | | | treesitter: runtime queries
| * | | treesitter: runtime queriesThomas Vigouroux2020-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Runtime queries just work like ftplugins, that is: - Queries in the `after` directory are sourced _after_ the "base" query - Otherwise, the last define query takes precedence. Queries can be found in the `queries` directory. Update runtime/lua/vim/treesitter/query.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* | | | Fix multiple typos (#13063)Hansraj Das2020-10-12
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix multiple typos in `src/nvim/api/ui_events.in.h` * Below spellings are corrected: * Definitions * Revision * Performance * Typo fix `presense` should be presence * Typo fix, follwed -> followed * Typo fix, attemping -> attempting * Typo fix, duplicate 'the' * Typo fix, bounaries -> boundaries * Revert "Typo fix, bounaries -> boundaries" This reverts commit 24779e55e596f7534585938a7e532830ad2fa83c. * Revert "Typo fix, duplicate 'the'" This reverts commit 1d41d74f78736e67821a15edc9c174a2c3024f87. * Revert "Typo fix, attemping -> attempting" This reverts commit d8b2860dfcac366af7afae1f09946ed0aee4a34e.
* | | vim-patch:8.2.1101: no error when using wrong arguments for setqflist()Jan Edmund Lazo2020-10-11
| | | | | | | | | | | | | | | | | | | | | Problem: No error when using wrong arguments for setqflist() or setloclist(). Solution: Check for the error. https://github.com/vim/vim/commit/be7a50c22f63478a6e64fe6b932a847830191b95
* | | api: multiple decoration providers at onceBjörn Linse2020-10-10
| | |
* | | vim-patch:8.2.1488: text does not scroll when inserting above first lineAufar Gilbran2020-10-07
| | | | | | | | | | | | | | | | | | Problem: Text does not scroll when inserting above first line. Solution: Adjust off-by-one error. (Ken Takata, closes vim/vim#6739) https://github.com/vim/vim/commit/9dc1917f42b23277e143fc58bbe27482b0b76bad
* | | vim-patch:8.2.1345: Redraw error when using visual block and scrollAufar Gilbran2020-10-07
| | | | | | | | | | | | | | | | | | Problem: Redraw error when using visual block and scroll. Solution: Add check for w_topline. ( closes vim/vim#6597) https://github.com/vim/vim/commit/f8992d47cd50494c64bb733329067c9de3c75200