aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
...
| * | | | | Synchronous formatting methods notify the user on timeout and interruptedKarim Abou Zeid2021-05-02
| | | | | |
| * | | | | Support multiple range formatting clientsKarim Abou Zeid2021-05-02
| | | | | |
| * | | | | doc clarificationKarim Abou Zeid2021-05-02
| | | | | |
| * | | | | Add formatting_seq_sync, change formatting and formatting_syncKarim Abou Zeid2021-05-01
| | |/ / / | |/| | |
* | | | | lsp: fix regression in jump_to_location() (#14446)francisco souza2021-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression that was introduced in [1] by accidentally leaving out a line. 1: https://github.com/neovim/neovim/pull/12262
* | | | | docs: Treesitter (#13260)TJ DeVries2021-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc & fixes: Generate treesitter docs * fixup to treesitter-core * docs(treesitter): fix docs for most functions Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* | | | | doc: update vim.cmd() (#14450)Shadman2021-05-01
| | | | |
* | | | | lsp: Allow decoded.result to be `false`Mathias Fussenegger2021-04-30
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some servers might respond to `workspace/executeCommand` requests with a boolean result and that could be `false`. A `false` result should be allowed and not trigger the `on_error` handler: -- Invalid server message on_error(client_errors.INVALID_SERVER_MESSAGE, decoded) Concrete example where this occurred is with eclipse.jdt.ls: vim.lsp.buf_request( 0, 'workspace/executeCommand', { command = 'java.project.isTestFile', arguments = { vim.uri_from_bufnr(0), }, }, function(err, _, resp) print(vim.inspect(err), vim.inspect(resp)) end )
* | | | doc : fixing missing @return in nvim_open_term docMichael Bleuez2021-04-24
| | | |
* | | | Merge pull request #14429 from ckipp01/forceMichael Lingelbach2021-04-23
|\ \ \ \ | | | | | | | | | | [LSP] - Don't automatically force shutdown on second restart.
| * | | | Don't automatically force shutdown on second restart.ckipp012021-04-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is maybe a bit of a niche case, but I hit on this often as I'm developing a server, and therefore continually restarting it to get the latest changes of the server. Previously, I could only do this once since if you send in a request to restart/shut down the server, it will register it as a `tried_graceful_shutdown = true` meaning that the next restart would force it to be killed instead of another graceful exit. Instead, this changes the name a bit and now it will only mark `graceful_shutdown_failed = true` _if_ it actually fails to gracefully shutdown. This change allows for a user to restart multiple times in a situation like mine where nothing is going wrong, but I just want to restart continually as I'm developing without having to close and reopen.
* | | | | lsp: make tagstack smarter motion-wise (#12262)Gabriel Sanches2021-04-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit prevents two things regarding the tagstack and jumping to locations: - Pushing the same item twice in a row - Pushing an item where the destination is the same as the source Both prevent having to press CTRL-T additional times just to pop items that don't make the cursor move.
* | | | | Revert "lsp: fix blocking in closing of clients"Michael Lingelbach2021-04-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2e6c09838f88803f31d229002715628639631897. * Fixes #14428 * This commit caused neovim to close while open handles to the uv timer to kill active language servers were still open
* | | | | lsp: check if config is nilMarco Hinz2021-04-23
| | | | |
* | | | | lsp: sort diagnostics by severity (#14372)Marco Hinz2021-04-23
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow to sort diagnostics (and thus signs and virtual text) by severity, so that the most important message is shown first. vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { severity_sort = true, } ) Fixes https://github.com/neovim/neovim/issues/13929
* | / / vim-patch:8.2.1588: cannot read back the prompt of a prompt bufferSean Dewar2021-04-21
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot read back the prompt of a prompt buffer. Solution: Add prompt_getprompt(). (Ben Jackson, closes vim/vim#6851) https://github.com/vim/vim/commit/077cc7aa0e0c431e97795612374fe17fe7c88803 Updated prompt_getprompt() doc to https://github.com/vim/vim/commit/cb80aa2d53e56d3aba3b3c439fb467f29a750c5e and removed mention of method syntax usage (not supported by Nvim).
* | | Merge pull request #14180 from oberblastmeister/lsp_exit_perfMichael Lingelbach2021-04-19
|\ \ \ | | | | | | | | fix slow closing of lsp clients when exiting vim
| * | | lsp: fix blocking in closing of clientsBrian Shu2021-04-19
| | | |
* | | | Merge pull request #12323 from da-x/orphaned-signsMatthieu Coudron2021-04-18
|\ \ \ \ | | | | | | | | | | Handle 'orphaned signs' on line deletion for signcolumn >= 2
| * | | | Handle 'orphaned signs' on line deletion for signcolumn >= 2Dan Aloni2021-04-17
| | | | |
* | | | | vim-patch:8.2.2773: PSL filetype not recognized (#14389)Jan Edmund Lazo2021-04-17
|/ / / / | | | | | | | | | | | | | | | | Problem: PSL filetype not recognized. Solution: Add a filetype pattern. (Daniel Kho, closes vim/vim#8117) https://github.com/vim/vim/commit/112a006417a0d4700ff39ddba3bb5e985ae9770f
* | | | Merge pull request #13684 from pohzipohzi/inputBjörn Linse2021-04-16
|\ \ \ \ | | | | | | | | | | doc: add description for cancelreturn option in input()
| * | | | doc: add description for cancelreturn option in input()pohzipohzi2021-04-08
| | | | |
* | | | | Merge pull request #14355 from janlazo/vim-8.1.2313Jan Edmund Lazo2021-04-15
|\ \ \ \ \ | | | | | | | | | | | | vim-patch:8.1.2313,8.2.{2046,2769}
| * | | | | vim-patch:8.2.2769: Modula-3 config files are not recognizedJan Edmund Lazo2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Modula-3 config files are not recognized. Solution: Add filetype patterns. (Doug Kearns) https://github.com/vim/vim/commit/6bc00699c5049c40761d212bef1b490e2af7944c
* | | | | | ex_cmds: port :evalJan Edmund Lazo2021-04-15
|/ / / / / | | | | | | | | | | | | | | | | | | | | Cherry-picked from patch v8.1.1807. Required for patch v8.2.2761.
* | | | | lsp: add lsp.buf_request_all for invoking asynchronous callbacksBrian Shu2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixed nil issue changed poll to 10 changed wording added docs to once comma english
* | | | | lsp: Remove vim.NIL handling from apply_text_document_editMathias Fussenegger2021-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | The rpc layer normalizes `vim.NIL` to `nil`, so the scenario tested should never happen.
* | | | | lsp: Accept text document edits with version zeroMathias Fussenegger2021-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a couple of reports of "Buffer X newer than edits" problems. We first assumed that it is incorrect for a server to send 0 as a version - and stated that they should send a `null` instead, given that in the specification the `textDocument` of a `TextDocumentEdit` is a `OptionalVersionedTextDocumentIdentifier`. But it turns out that this was a change in 3.16, and in 3.15 and earlier versions of the specification it was a `VersionedTextDocumentIdentifier` and language servers didn't have a better option than sending `0` if they don't keep track of the version numbers. So this changes the version check to always accept `0` values. See - https://github.com/neovim/neovim/issues/12970 - https://github.com/neovim/neovim/issues/14256 - https://github.com/haskell/haskell-language-server/pull/1727
* | | | | doc: prefer "python -m pip" (#14353)Aru Sahni2021-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current guidance for install Python packages is to use python -m pip install <package_name> Instead of pip install <package_name> This ensures that one is using the version of pip that is tied to the environment's interpreter (and, thusly, its packages). This has [been endorsed by a core maintainer](https://snarky.ca/why-you-should-use-python-m-pip/) as being the recommended way to invoke pip. As there currently are a few places where the old invocation was used, attempt to bring them in line. Fixes #14234
* | | | | doc: port prompt-buffer section (#14342)Sean Dewar2021-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [skip ci] Changes from original include: - "See |terminal-window|" -> "See |terminal|". - Remove mention of using CTRL-W window commands in insert mode. - Converted usage example to use the Nvim job and channel API. - Removed logging from usage example, as ch_logfile() has no direct Nvim counterpart. - Fixed some small grammar/spelling mistakes.
* | | | | lsp: fix _make_floating_popup_size when wrap_at is nil (#14359)Michael Lingelbach2021-04-14
| | | | |
* | | | | Merge pull request #14046 from ↵Thomas Vigouroux2021-04-14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nvim-treesitter/feature/language-tree-directive-config feat(treesitter): allow injections to be configured through directives
| * | | | | feat(treesitter): allow injections to be configured through directivesSteven Sojka2021-04-02
| | | | | |
* | | | | | lsp: fix off-by-one in line diagnostic highlightingMarco Hinz2021-04-14
| | | | | |
* | | | | | Merge pull request #14119 from mfussenegger/lsp-debounceMichael Lingelbach2021-04-13
|\ \ \ \ \ \ | | | | | | | | | | | | | | lsp: Add a flag to debounce didChange notifications
| * | | | | | lsp: Add a flag to debounce didChange notificationsMathias Fussenegger2021-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Would help with cases as reported in https://github.com/neovim/neovim/issues/14087
* | | | | | | Merge pull request #14324 from mhinz/lsp-border-float-placementMarco Hinz2021-04-13
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | lsp: correct float placement when using bordersMarco Hinz2021-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because borders add up to 2 to the height of a float, we need to subtract that from the anchor position, when opening a float in the lower half of the window.
| * | | | | | lsp: make sure borders are always inside of the screenMarco Hinz2021-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a helper function to get the additional width a border adds to a float to make sure that the border is always inside the visible screen.
* | | | | | | tutor: force one sign per line (#14352)Marco Hinz2021-04-13
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only thing setting signs in the tutor buffer (buftype=nofile), should be tutor.vim itself. Instead of endlessly piling up new signs per line, just unplace any sign on the line before placing a new one. Closes https://github.com/neovim/neovim/issues/13808 Closes https://github.com/neovim/neovim/pull/13809
* | | | | | Merge pull request #14337 from janlazo/vim-8.2.0409Jan Edmund Lazo2021-04-11
|\ \ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.1.{1841,2416},8.2.{409,1920,2050}
| * | | | | | vim-patch:8.1.2416: loading menus sets v:errmsgJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Loading menus sets v:errmsg. Solution: Avoid setting v:errmsg and add a test for that. (Jason Franklin) https://github.com/vim/vim/commit/e24c5b3332b453175e5f73423884087a4aef1247
* | | | | | | fix(doc): Add '/site' to stdpath('data') example in `:help 'rtp'`James McCoy2021-04-10
|/ / / / / / | | | | | | | | | | | | | | | | | | [skip ci]
* | | | / / doc: advertise nanotee/nvim-lua-guide (#14332) [skip ci]Christian Clason2021-04-09
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | Mention https://github.com/nanotee/nvim-lua-guide at the beginning of ":h lua" as well as ":h lua-vimscript". Closes #12369 .
* | | | | eval: add v:_null_stringJan Edmund Lazo2021-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replacement for Vim's test_null_string(). Vim uses it to verify that its codebase handles null strings. Preparation for the Test_null_list() in patch v8.2.1822. Use v:_null_string, not non-existent env var, for null string tests. Mention v:_null_string in id() because id(v:_null_string) returns (nil).
* | | | | vim-patch:8.0.1505: debugger can't break on a conditionJan Edmund Lazo2021-04-08
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Debugger can't break on a condition. (Charles Campbell) Solution: Add ":breakadd expr". (Christian Brabandt, closes vim/vim#859) https://github.com/vim/vim/commit/c6f9f739d32084923c3031cbf6f581f8c8bf7fd2 Do not port "has_watchexpr()" to avoid dead code. "has_watchexpr()" always returns 0 because "debug_expr" is always 0. Restore "eval_expr()" as a wrapper to allocate "typval_T" for "eval0()". Remove it in later patches. Include "typval_compare()" changes from patch v8.1.0958, partially ported in 8b60368c1b9e23f0695557da170d416d71f7e6a3. Close https://github.com/neovim/neovim/pull/12373 N/A patches for version.c: vim-patch:8.2.2720: GTK menu tooltip moves the cursor Problem: GTK menu tooltip moves the cursor. Solution: Position the cursor after displaying the tooltip. Do not show the tooltip when editing the command line. https://github.com/vim/vim/commit/01ac0a1f664c5b1ffd5c9ef196d4b47edf2fd494
* | | | Merge pull request #14302 from vigoux/fix-8449Michael Lingelbach2021-04-07
|\ \ \ \ | | | | | | | | | | Update docs
| * | | | docs: add priority option in buf_set_extmarkThomas Vigouroux2021-04-07
| | | | |
* | | | | Merge pull request #14200 from teto/treesitter-checkhealthMarco Hinz2021-04-07
|\ \ \ \ \ | |/ / / / |/| | | | feat: treesitter checkhealth