aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
...
| * | | vim-patch:8.2.2468: not easy to get the full command name from a shortened onezeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Not easy to get the full command name from a shortened one. Solution: Add fullcommand(). (Martin Tournoij, closes vim/vim#7777) https://github.com/vim/vim/commit/038e09ee7645731de0296d255aabb17603276443
* | | | Merge pull request #16618 from zeertzjq/vim-8.2.3780Jan Edmund Lazo2021-12-25
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.{3780,3784}: ":cd" works differently on MS-Windows
| * | | | vim-patch:partial:0e6adf8a29d5zeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471
| * | | | vim-patch:8.2.3784: the help for options is outdatedzeertzjq2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The help for options is outdated. Solution: Include all the recent changes. https://github.com/vim/vim/commit/7b1463bca36d16e70afd6779e4fbb30761048c91 This is the only applicable hunk.
| * | | | vim-patch:8.2.3780: ":cd" works differently on MS-Windowszeertzjq2021-12-25
| |/ / / | | | | | | | | | | | | | | | | | | | | Problem: ":cd" works differently on MS-Windows. Solution: Add the 'cdhome' option. (closes vim/vim#9324) https://github.com/vim/vim/commit/29f3a4591528130fded3fe1d63d74bcf22ab4f6c
* | | | Merge pull request #16705 from zeertzjq/vim-8.2.2508Jan Edmund Lazo2021-12-25
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.{2508,2641,3846}
| * | | | vim-patch:8.2.2508: cannot change the character displayed in non existing lineszeertzjq2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot change the character displayed in non existing lines. Solution: Add the "eob" item to 'fillchars'. (closes vim/vim#7832, closes vim/vim#3820) https://github.com/vim/vim/commit/a98f8a230596d8fb44cc68321de72980a21428cb Nvim has already implemented this feature, so this just ports the tests and docs.
* | | | | vim-patch:8.2.3880: Solution filter files are not recognized (#16779)Christian Clason2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | Problem: Solution filter files are not recognized. Solution: Add pattern *.slnf and use json. (Doug Kearns) https://github.com/vim/vim/commit/70a120b72b2b48800f881725c58241cd170893f8
* | | | | feat(lua): add vim.spell (#16620)Lewis Russell2021-12-25
| |_|/ / |/| | |
* | | | vim-patch:8.2.3873: go.mod files are not recognized (#16757)dundargoc2021-12-25
| |/ / |/| | | | | | | | | | | Problem: go.mod files are not recognized. Solution: Check for the file name. (closes vim/vim#9380) https://github.com/vim/vim/commit/82b3b4c6cf2973fe767f8e2311482af0bd95267e
* | | docs: regenerate (#16742)github-actions[bot]2021-12-23
| | | | | | | | | Co-authored-by: marvim <marvim@users.noreply.github.com>
* | | vim-patch:8.2.3874: cannot highlight the number column for a signJames McCoy2021-12-22
| | | | | | | | | | | | | | | | | | Problem: Cannot highlight the number column for a sign. Solution: Add the "numhl" argument. (James McCoy, closes vim/vim#9381) https://github.com/vim/vim/commit/a80aad717464760a5a50ac2201ce35b24a0cf7a5
* | | feat(lsp): add buf_detach_client (#16250)Michael Lingelbach2021-12-21
| | | | | | | | | | | | | | | This allows the user to detach an active buffer from the language client. If no clients remain attached to a buffer, the on_lines callback is used to cancel nvim_buf_attach.
* | | fix(lsp): fix `nil`-index behavior for UTF-8 in `_str_*index_enc` methods ↵Rishikesh Vaishnav2021-12-20
| | | | | | | | | | | | | | | (#16731) Previously, the `_str_utfindex_enc` and `_str_byteindex_enc` helper functions would return `nil` when `offset_encoding == "utf-8"` and `index == nil`. Clearly, this doesn't reflect the expected behavior of the functions they're wrapping which would return the length of the line in this case. This should fix behavior with servers that use UTF-8 `offset_encoding` when applying text edits, formatting a range, and doing range code actions (though this isn't tested currently).
* | | fix(lsp): avoid attaching to unloaded buffers (#16723)Michael Lingelbach2021-12-19
|/ / | | | | | | | | | | | | | | | | | | | | Closes https://github.com/neovim/neovim/issues/16562 https://github.com/neovim/neovim/issues/16249 https://github.com/neovim/neovim/issues/16297 * buf_attach_client can be called on an unloaded buffer * on_attach will prematurely fail, while the language server client tracks this buffer as attached * The language server client will track this buffer as attached despite textDocument/didChange notifications not being sent to the server * Instead, check if the buffer is loaded and return early, warning via the lsp logger that buf_attach_client was called on an invalid buffer
* | vim-patch:8.2.3843: dep3patch files are not recognized (#16700)Christian Clason2021-12-18
| | | | | | | | | | | | Problem: Dep3patch files are not recognized. Solution: Recognize dep3patch files by their location and content. (James McCoy, closes vim/vim#9367) https://github.com/vim/vim/commit/647ab4cede4dbf412d24748f8e0a64d1cb9239f4
* | feat(runtime): new checkhealth filetype (#16660)matveyt2021-12-18
| |
* | autocmd: RecordingEnter, RecordingLeave (#16684)Gregory Anders2021-12-18
|\ \
| * | docs(autocmd): update docs to match implementationThomas Vigouroux2021-12-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | docs(reg_recorded): add links to relevant docs docs(Recording): update docs to match implementation docs(Q) update references of Q to be gQ docs(autocmd) add description about state of reg_record{ing,ed} for RecordingLeave docs(vim_diff) add Recording{Enter,Leave} to features docs(index) removed duplicate gQ docs(options) removed line about gQ erroring in visual mode Update runtime/doc/vim_diff.txt Co-authored-by: zeertzjq <zeertzjq@outlook.com> docs(vim_diff) removed double mention of Q
| * | feat(autocmd): add Recording autocmdsThomas Vigouroux2021-12-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feat(eval): add reg_recorded() This function is used the get the last recorded register. style(Recording): rename handler to match suggestions fix(RecordingLeave): send autocommand earlier This makes the autocommand fire just before setting reg_recorded to reg_recording, this way we clearly show that we are actually just before actually quitting the recording mode.
* | | fix(diagnostic): respect "if_many" source option for virtual text (#16653)Gregory Anders2021-12-17
| | | | | | | | | | | | | | | | | | | | | | | | The `prefix_source` function only evaluates the sources from the diagnostics passed to it; however, because each namespace draws its own virtual text, its diagnostics will never contain more than a single source (by definition). This requires changing the semantics of what "if_many" means from "multiple sources in a single 'batch' of diagnostics" to "multiple sources of all diagnostics within a buffer".
* | | fix(lsp): correctly align start and end range to codepoints during ↵Rishikesh Vaishnav2021-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incremental sync (#16670) Closes #16624 Fixes two issues with aligning the start position and end position to codepoints when calculating the start and end range. When aligning the start position: * use aligned byte index to calculate character index rather than the unadjusted byte When aligning the end position: * do not adjust the end byte if it falls on a UTF-8 codepoint * align byte to the first byte of the next codepoint rather than the last byte of the current codepoint * compute character character end range on the aligned byte index This commit also adds additional test coverage, including multibyte operations that previously failed before this commit.
* | | fix(lsp): call config on_exit handler before context is cleared (#16638)Gregory Anders2021-12-17
|/ / | | | | | | | | | | The on_exit handler provided to the client configuration is called after the client's context is cleared (e.g. which buffers the client was attached to). Calling the handler sooner allows these handlers to access the client object and do their own cleanup with the full context.
* | vim-patch:0e6adf8a29d5 (#16682)Christian Clason2021-12-16
| | | | | | | | Update runtime files https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471
* | refactor(diagnostic): remove hack (#16685)Gregory Anders2021-12-16
| | | | | | No longer required since #16548.
* | fix(diagnostic): assert that diagnostics have line number and column (#16683)Gregory Anders2021-12-16
| | | | | | | | | | | | | | Line number and column are required and much of the diagnostic API assumes that these are both present. When one of the two is missing, cryptic errors pop up in other parts of the diagnostic subsystem. Instead, assert that diagnostics are well formed when they are entered into the cache, which provides a clearer error.
* | docs(options): mention how to disable `inccommand` preview (#16534)Hitarth Thummar2021-12-15
| | | | | | Co-authored-by: Hitarth Thumma
* | docs: regenerate (#16468)github-actions[bot]2021-12-15
| | | | | | Co-authored-by: marvim <marvim@users.noreply.github.com>
* | vim-patch:8.2.3814: .csx files and .sln files are not recognized (#16662)Christian Clason2021-12-15
| | | | | | | | | | Problem: .csx files and .sln files are not recognized. Solution: Add filetype patterns. (Doug Kearns) https://github.com/vim/vim/commit/cfabad9bcf45650dee1f1f41ec4047f82a12f323
* | fix(ui): close floating window on BufLeave event (#16557)ii142021-12-15
| | | | | | | | | | | | | | | | | | When buffer is visible in two splits simultaneously, BufHidden event is not triggered, causing the floating window to remain on screen after switching to another buffer. Remove BufHidden event from close_events defaults, and close the window if we changed the buffer to something other than the buffer that spawned the floating window or the floating window buffer itself.
* | vim-patch:8.2.3805: i3config files are not recognized (#16645)Christian Clason2021-12-14
| | | | | | | | | | | | Problem: i3config files are not recognized. Solution: Add patterns to match i3config files. (Quentin Hibon, closes vim/vim#7969) https://github.com/vim/vim/commit/8176be159859deb9cf6455565bd7b24b3dcf17b9
* | feat(treesitter): multiline match predicatesLewis Russell2021-12-12
| |
* | feat(ts): add support for multiline nodes in get_node_text (#14999)Mathias Fußenegger2021-12-12
| | | | | | | | | | | | Based on https://github.com/neovim/neovim/pull/14445 This extends `vim.treesitter.query.get_node_text` to return the text that spans a node's range even if start_row ~= end_row.
* | fix(docs): add bufnr and user_data to diagnostic-structure (#16619)Mathias Fußenegger2021-12-11
| |
* | docs(vim_diff.txt): document SearchWrapped (#16612)zeertzjq2021-12-10
| |
* | refactor: replace deprecated lua functions with their new versions (#16603)dundargoc2021-12-10
| | | | | | | | | | | | Calling vim.lsp.buf.definition() sometimes gives a deprecation warning. This will likely solve that. Co-authored-by: Christian Clason <christian.clason@uni-due.de>
* | runtime: support once on s:GetAutocmdPrefix (#16457)Koichi Shiraishi2021-12-10
| | | | | | Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
* | feat: add autocommand event when search wraps around (#8487)Alejandro Exojo2021-12-10
| |
* | fix(lsp): create lsp requests with position offsets considering client ↵Rishikesh Vaishnav2021-12-10
| | | | | | | | | | | | encoding (#16382) Co-authored-by: black-desk <clx814727823@gmail.com> Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
* | Merge pull request #16541 from jamessan/vim-8.2.3664James McCoy2021-12-09
|\ \ | | | | | | vim-patch:8.2.3664,8.2.3743,8.2.3747,8.2.3748,8.2.3757
| * | vim-patch:partial 6304be625ce4James McCoy2021-12-08
| | | | | | | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/6304be625ce44dcfedc6735164d0b853578581c8 Remaining changes left out of 03d250eb4504d5168a754d0f3b7e9992337d60b4
| * | vim-patch:8.2.3664: cannot adjust sign highlighting for 'cursorline'James McCoy2021-12-08
| | | | | | | | | | | | | | | | | | | | | Problem: Cannot adjust sign highlighting for 'cursorline'. Solution: Add CursorLineSign and CursorLineFold highlight groups. (Gregory Anders, closes vim/vim#9201) https://github.com/vim/vim/commit/e413ea04b716effb28eb49dbc98ad3f9f761545a
* | | vim-patch:8.2.3769: zig files are not recognized (#16598)Christian Clason2021-12-09
| | | | | | | | | | | | | | | Problem: Zig files are not recognized. Solution: Add *.zig. (Gregory Anders, closes vim/vim#9313) https://github.com/vim/vim/commit/4c8c634365bc6d4d462635aed5e0f7ad2262d590
* | | Merge pull request #16582 from dundargoc/docs/remove-redundant-help-filesJames McCoy2021-12-09
|\ \ \ | | | | | | | | docs: remove redundant help files
| * | | docs: remove redundant help filesDundar Göc2021-12-08
| | | |
* | | | fix(diagnostic): set effective buffer number in autocmd (again) (#16589)Gregory Anders2021-12-08
| |/ / |/| | | | | Follow up to #16474.
* | | refactor(diagnostic): remove bufnr parameter from open_float (#16579)Gregory Anders2021-12-08
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | The overwhelming majority of use cases for `open_float` are to view diagnostics from the current buffer in a floating window. Thus, most use cases will just `0` or `nil` as the first argument, which makes the argument effectively useless and wasteful. In the cause of optimizing for the primary use case, make the `bufnr` parameter an optional parameter in the options table. This still allows using an alternative buffer for those that wish to do so, but makes the "primary" use case much easier. The old signature is preserved for backward compatibility, though it can likely be fully deprecated at some point.
* | docs(lsp): fix resolve_capabilities docstring (#16577)Gregory Anders2021-12-08
| |
* | docs: update missing help sections from main help page (#16573)dundargoc2021-12-08
| | | | | | Also replace non-existent help section remote.txt to remote_plugins.txt
* | refactor(diagnostic): add warning to deprecated functions (#16536)dundargoc2021-12-08
| |