aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* 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
| * | fix(ts): move checkhealth in runtime/vimThomas Vigouroux2021-04-06
| | |
| * | feat(ts): include parser ABI version in checkhealthThomas Vigouroux2021-04-06
| | |
| * | feat: treesitter checkhealthMatthieu Coudron2021-04-06
| | |
| * | fix: allow accessing vim.treesitter.language without requireThomas Vigouroux2021-04-01
| | |
* | | Merge pull request #14309 from mjlbach/feature/hover_return_win_bufMichael Lingelbach2021-04-07
|\ \ \ | | | | | | | | lsp: hover window should return buf/winnr from focusable float
| * | | lsp: hover window should return buf/winnr from focusable floatMichael Lingelbach2021-04-07
| | | |
* | | | lsp: update documentation on window bordersMichael Lingelbach2021-04-06
|/ / /
* | | Merge pull request #14300 from elianiva/feat/lsp_border_configMichael Lingelbach2021-04-05
|\ \ \ | | | | | | | | feat(lsp): make hover/signature_help borders configurable
| * | | feat(lsp): make hover/signature_help borders configurableelianiva2021-04-06
| | | | | | | | | | | | | | | | | | | | | | | | change hl groups for the example rename borders -> border
* | | | vim-patch:8.2.2714: filetype pattern ending in star is too far upJan Edmund Lazo2021-04-05
|/ / / | | | | | | | | | | | | | | | Problem: Filetype pattern ending in star is too far up. Solution: Move down to where patterns ending in star belong. (closes vim/vim#8065) https://github.com/vim/vim/commit/409da842db9dc24d88e415e518c02c05ac7de760
* | | lsp: floating window improvements (#14207)Michael Lingelbach2021-04-05
| | | | | | | | | | | | * remove left/right padding feature from trim_and_pad * use invisible borders by default on floating windows
* | | Merge pull request #14063 from lewis6991/masterJan Edmund Lazo2021-04-04
|\ \ \ | | | | | | | | vim-patch:8.1.{1631,1682,1899}: sign improvements
| * | | vim-patch:8.1.1682: placing a larger number of ...Lewis Russell2021-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...signs is slow Problem: Placing a larger number of signs is slow. Solution: Add functions for dealing with a list of signs. (Yegappan Lakshmanan, closes #4636)
* | | | vim-patch:8.2.2697: function list test failsJan Edmund Lazo2021-04-03
|/ / / | | | | | | | | | | | | | | | Problem: Function list test fails. Solution: Add missing function. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/0df603014589c663f4b49dc6fd36c3b99db1718f
* | | vim-patch:8.2.2694: when 'matchpairs' is empty every character beeps (#14279)Jan Edmund Lazo2021-04-03
| | | | | | | | | | | | | | | | | | Problem: When 'matchpairs' is empty every character beeps. (Marco Hinz) Solution: Bail out when no character in 'matchpairs' was found. (closes vim/vim#8053) Add assert_nobeep(). https://github.com/vim/vim/commit/5b8cabfef7c3707f3e53e13844d90e5a217e1e84
* | | vim-patch:8.2.2690: PowerShell files are not recognized (#14276)Jan Edmund Lazo2021-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: PowerShell files are not recognized. Solution: Recognize several PowerShell extension. (Heath Stewart, closes vim/vim#8051) https://github.com/vim/vim/commit/ef38bcf05196ad7e795dd77b4922fa9db58fc310 N/A patches for version.c: vim-patch:8.2.2689: tiny build fails Problem: Tiny build fails. Solution: Add #ifdef around use of p_stl. https://github.com/vim/vim/commit/160a2b4dac198f31fbcff9d696548e011c4602c1 vim-patch:8.2.2691: autoconf may mess up compiler flags Problem: Autoconf may mess up compiler flags. Solution: Handle removing FORTIFY_SOURCE a bit better. (Vladimir Lomov, closes vim/vim#8049) https://github.com/vim/vim/commit/3fa5e64e0ed55de718e48d0268edc360b2352bc1
* | | Fix #14192: Handle IO errors and close files in query.luaStephan Seitz2021-04-02
| |/ |/|
* | Merge pull request #14218 from steelsojka/bugfix/check-queries-existThomas Vigouroux2021-04-02
|\ \ | | | | | | fix(treesitter): check highlight queries exist
| * | fix(treesitter): check highlight queries existSteven Sojka2021-03-26
| | |
* | | doc: Fix typo in the help for <Cmd> where lhs was used instead of rhs (#14272)Kevin Svetlitski2021-04-01
| | |
* | | lsp: allow launching language servers with uv_spawn using cwd argMichael Lingelbach2021-04-01
| |/ |/|
* | Merge pull request #14264 from mjlbach/feature/handle_reloading_bufferMichael Lingelbach2021-04-01
|\ \ | | | | | | lsp: add on_reload callback for buffer edits outside of neovim
| * | lsp: add on_reload callback for buffer edits outside of neovimMichael Lingelbach2021-03-31
| | |
* | | Merge pull request #14262 from mjlbach/feature/lsp_did_save_autocommandMichael Lingelbach2021-04-01
|\ \ \ | | | | | | | | lsp: clear did_save handler autocommand on each attach
| * | | lsp: clear did_save handler autocommand on each attachMichael Lingelbach2021-03-31
| |/ /
* / / lsp: fix textDocument/workspaceSymbol -> workspace/symbolMichael Lingelbach2021-03-31
|/ /
* | ts: Add per-language highlight linksTJ DeVries2021-03-31
| |