aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* Merge pull request #13321 from seandewar/vim-8.2.2011Jan Edmund Lazo2020-11-19
|\ | | | | vim-patch:8.2.{2006,2011}
| * vim-patch:8.2.2006: .pbtxt files are not recognizedSean Dewar2020-11-19
| | | | | | | | | | | | Problem: .pbtxt files are not recognized. Solution: Recognize .pbtxt as protobuf text buffers. (closes vim/vim#7326) https://github.com/vim/vim/commit/88774a30c0b1957a6177cdb69d2becedae610299
* | gitcommit.vim: patch runtime/syntax to c08ee7476b1adrian52020-11-20
| | | | | | | | vim/vim@c08ee7476b19f9b4de5df287797af87c4e3fba0a
* | gitcommit.vim: patch runtime/ftplugin to c08ee7476adrian52020-11-20
|/ | | | vim/vim@c08ee7476b19f9b4de5df287797af87c4e3fba0a
* docs: Follow conventionsrockerBOO2020-11-16
|
* docs: Update nvim_lsp to lspconfigrockerBOO2020-11-16
|
* lsp: Expose all diagnostics (#13285)Mathias Fußenegger2020-11-14
| | | | | | | | | | | | | | | * lsp: Remove duplicate `diagnostics` fallback in diagnostic.display * lsp: Expose all diagnostics Before the changes in #12655 it was possible to retrieve all diagnostics via `vim.lsp.util.diagnostics_by_buf`. This adds a `diagnostic.get_all()` to enable users to retrieve all diagnostics. Use cases for that could include loading all diagnostics into the quickfix list, or to build an enhanced goto_next that can move across buffers.
* doc: fixup sign information (#13281)TJ DeVries2020-11-13
| | | Thanks to @sunzoje for finding the outdated documentation.
* 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)
* Removed restricted mode - Fix #11972georg3tom2020-11-11
|
* Update the differences with Vim. (#13239)Yegappan Lakshmanan2020-11-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | :cquit can use count to set the exit code patch 8.2.0095: cannot specify exit code for :cquit :tchdir tab-local current-directory patch 8.1.1218: cannot set a directory for a tab page Autocmd Events: - DirChanged patch 8.0.1459: cannot handle change of directory - TextYankPost patch 8.0.1394: cannot intercept a yank command tabpagenr() "#" argument g<Tab> goes to the last-accessed tabpage. patch 8.2.1401: cannot jump to the last used tabpage hl-QuickFixLine patch 8.0.0641: cannot set a separate highlighting for the quickfix line v:event patch 8.0.1394: cannot intercept a yank command K in help documents can be used like CTRL-]. Updated as part of a runtime update. https://github.com/vim/vim/commit/4c05fa08c9739e307ddc88ac91ba6d208f1fd68e
* Merge pull request #13205 from romgrk/add-bufmodified-autocmdBjörn Linse2020-11-09
|\ | | | | Implement BufModifiedSet autocmd
| * doc: add BufModifiedSetRom Grk2020-11-07
| |
* | tree-sitter: Put base languages first in queriesStephan Seitz2020-11-08
| | | | | | | | | | | | | | | | This reverts the handling of base languages to the old way how nvim-treesitter handled them. When a language extends a base language it usually wants to be able to overwrite queries. Related: https://github.com/nvim-treesitter/nvim-treesitter/issues/633
* | lsp: fix formatting_sync with multiple clients (#13233)francisco souza2020-11-07
| | | | | | | | | | | | | | | | buf_request_sync returns a table indexed by the client id, so when starting a second client on a separate buffer, result[1] will be nil. Closes #13232. Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
* | vim-patch:8.2.1964: not all ConTeXt files are recognized (#13245)champignoom2020-11-07
| | | | | | | | | | Problem: Not all ConTeXt files are recognized. Solution: Add two patterns. (closes vim/vim#7263) https://github.com/vim/vim/commit/faebda8cc1ecc4d6a197e06e968df46a2841ed79
* | 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
| * doc: fix WinScrolled detailsRom Grk2020-11-07
| |
| * Merge branch 'master' into add-scroll-eventsRom Grk2020-11-03
| |\
| * | doc: update doc: s/Scroll/WinScrolled/Rom Grk2020-10-28
| | |
| * | docs: add documentation for Scroll autocmdRom Grk2020-10-24
| | |
* | | Merge pull request #13229 from ElPiloto/more_treesitter_docThomas Vigouroux2020-11-05
|\ \ \ | | | | | | | | [RDY] doc: Supplement documentation for treesitter.
| * | | Update runtime/doc/treesitter.txtLuis Piloto2020-11-05
| | | | | | | | | | | | Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
| * | | doc: Fix treesitter doc PR.ElPiloto2020-11-04
| | | |
| * | | doc: Supplement documentation for treesitter.ElPiloto2020-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Describe query components (capture, match, pattern). Not well-described in tree-sitter documentation. - Describe Query() object. Not actually described anywhere in documenation.
* | | | Add g:loaded_matchit check (#13226)Shougo2020-11-04
| | | | | | | | | | | | I have added g:loaded_matchit check to skip matchit loading like other default plugins.
* | | | healthcheck: suggest to skip tests perl provider (#13223)Jan Edmund Lazo2020-11-04
|/ / / | | | | | | | | | CPAN tests are unreliable on Windows. CI does the same to reduce flaky,slow builds.
* | | treesitter: separate tree and parserThomas Vigouroux2020-11-04
| | | | | | | | | | | | While this might sound silly, it is needed for further improvements.
* | | docs: Fix typo in example codeLucas Hoffmann2020-11-03
| |/ |/|
* | Merge pull request #13178 from steelsojka/fix-empty-main-query-fileThomas Vigouroux2020-11-02
|\ \ | | | | | | fix(treesitter): account for no main query file
| * | fix(treesitter): account for no main query fileSteven Sojka2020-10-28
| | |
* | | lsp: remove vim.NIL from processing (#13174)TJ DeVries2020-11-02
| | | | | | | | | | | | | | | * lsp: remove vim.NIL from processing * lsp: remove instances of vim.NIL
* | | vim-patch:8.2.0864: pragmas are indented all the way to the leftJan Edmund Lazo2020-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Pragmas are indented all the way to the left. Solution: Add an option to indent progmas like normal code. (Max Rumpf, closes vim/vim#5468) https://github.com/vim/vim/commit/d881b516da0184052d2f9d33c3f72c5c014316bd N/A patches for version.c: vim-patch:8.1.2030: tests fail when build with normal features and terminal Problem: Tests fail when build with normal features and terminal. (Dominique Pelle) Solution: Disable tests that won't work. (closes vim/vim#4932) https://github.com/vim/vim/commit/997d42427eaab889058eb047e08d55de9e4a968a vim-patch:8.1.2063: some tests fail when +balloon_eval_term is missing Problem: Some tests fail when +balloon_eval_term is missing but _balloon_eval is present. (Dominique Pelle) Solution: Check the right feature in the test. (closes vim/vim#4962) https://github.com/vim/vim/commit/1e82a784ace6d2c4dce594dd6156bcb0028bba9e vim-patch:8.2.1938: wiping out a terminal buffer makes some tests fail Problem: Wiping out a terminal buffer makes some tests fail. Solution: Do not wipe out the terminal buffer unless wanted. https://github.com/vim/vim/commit/a46765a79745ff27b4a44659fb8389519c961977
* | | lsp: complete support for `CodeActionKind`s to capabilities (#13180)Jesse2020-11-01
| | | | | | | | | | | | | | | We support applying all kinds in the spec equivalently and some servers (including dartls) won't send code actions if support for the relevant kinds is not explicitly stated in the client capabilities. Therefore, this PR makes that support explicit. Also, as we support all CodeActionKinds, we should also mark the server as supporting code actions when it specifies code action kinds. This is also done in this PR.
* | | 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.
* | | | | lsp: Remove snippet lies (#13183)TJ DeVries2020-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't actually support snippets in core in the way that users would truly expect. So, by default, we will not say that builtin-lsp has `snippetSupport`. To re-enable, users can do the following: First, get a capabilities dictionary with `local capabilities = vim.lsp.protocol.make_client_capabilities()` Then override `capabilities.textDocument.completion.completionItem.snippetSupport = true` and then pass those capabilties to the setup function. ``` nvim_lsp.server_name.setup { ..., capabilities = capabilities, ..., } ``` See https://github.com/neovim/neovim/issues/12795
* | | | | Merge pull request #13172 from janlazo/vim-8.2.1910Jan Edmund Lazo2020-10-30
|\ \ \ \ \ | |_|/ / / |/| | | | vim-patch:8.1.{2034,2050},8.2.{131,913,929,1521,1910,1913,1922}
| * | | | vim-patch:8.1.2034: dark them of GTK 3 not supportedJan Edmund Lazo2020-10-29
| | |/ / | |/| | | | | | | | | | | | | | | | | | Problem: Dark them of GTK 3 not supported. Solution: Add the "d" flag in 'guioptions'. (Jonathan Conder, closes vim/vim#4934) https://github.com/vim/vim/commit/50bf7ce0c9f8c3ede2d1a02c734beba9d5a0504e
* / | | Fix clipboard provider detection (#13190)necabo2020-10-29
|/ / / | | | | | | Fixes #13189
* / / lsp: Fix case where active_signature == vim.NIL (#13114)Michael Lingelbach2020-10-27
|/ /
* | vim-patch:8.1.1769: 'shellslash' is also used for completionskippi2020-10-26
| | | | | | | | | | | | Problem: 'shellslash' is also used for completion. Solution: Add the 'completeslash' option. (Yasuhiro Matsumoto, closes vim/vim#3612) https://github.com/vim/vim/commit/ac3150d385e6e3f3fe76642aac3cda954d30583f
* | 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 :((
* | | lsp: Store diagnostics for unloaded buffers (#13102)Mathias Fußenegger2020-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid loading buffers https://github.com/neovim/neovim/pull/12440 changed the logic to not process diagnostics for unloaded buffers. This is problematic for language servers where compile errors or build errors are reported via diagnostics. These errors may prevent the language server from providing all functions and it is difficult for users to debug it without having access to the errors. For example, with eclipse.jdt.ls there may be a problem with gradle (the build tool for java), it results in a diagnostics like this: org.gradle.toolingapi/build.gradle|1 col 1| Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.8.1-bin.zip'. This would be invisible to users unless the user happens to open the right file. In this case the user would actually never see the error, because the language server isn't attached to the build configuration files. This changes the behaviour to at least store the diagnostics. The other operations which are more expensive are still skipped.
* | | 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
| | |