aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
...
| * | vim-patch:9.1.0874: filetype: karel files are not detectedChristian Clason2024-11-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: karel files are not detected Solution: detect '*.kl' files as karel filetype, include syntax and filetype plugin (Kirill Morozov) closes: vim/vim#16075 https://github.com/vim/vim/commit/fdac54d7bbf6d68a8bf741e734b86d0f1998ac86 Co-authored-by: Kirill Morozov <kirill@robotix.pro> Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de>
| * | vim-patch:4927dae: runtime(compiler): fix escaping of arguments passed to ↵Christian Clason2024-11-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :CompilerSet See newly added help entry referring to option-backslash closes: vim/vim#16084 https://github.com/vim/vim/commit/4927daef608d4bbcdce8a1098cdeeaed3112c849 Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
| * | fix(messages): no message kind for search pattern #31272Tomasz N2024-11-19
| | |
* | | Merge remote-tracking branch 'upstream/master' into mix_20240309Josh Rahm2024-11-25
|\| |
| * | fix(lsp): restore get_language_id behaviourLewis Russell2024-11-19
| | | | | | | | | | | | | | | | | | Ensure filetype is always passed. Fixes #31262
| * | vim-patch:9.1.0873: filetype: Vivado files are not recognizedChristian Clason2024-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: Vivado files are not recognized Solution: detect '*.mss' files as 'mss' filetype (Wu, Zhenyu) references: https://docs.amd.com/r/2020.2-English/ug1400-vitis-embedded/Microprocessor-Software-Specification-MSS closes: vim/vim#15907 https://github.com/vim/vim/commit/a87462a498a883e12ad7699b26bd28f4600b68c6 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
| * | refactor(lsp): fold in dynamic_registration code into the clientLewis Russell2024-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Capability register logic is spread across 3 files. Solution: - Consolidate (and simplify) logic into the client. - Teach client.supports_method about resolve methods
| * | fix(api): only flush nvim__redraw when necessary #31250luukvbaal2024-11-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Not possible to only set a "redraw later" type with nvim__redraw, which seems to be desired for the treesitter highlighter. Solution: Do not update the screen when "flush" is explicitly set to false and only redraw later types are present. In that case, do not call ui_flush() either.
| * | fix(checkhealth): disable 'listchars' #31245Yochem van Rosmalen2024-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'listchars' (in particular multispace) breaks visual heading due to `Whitespace` highlight group. Solution: Disable 'list' (and thus all listchars) by default for `checkhealth` files. Fixes #31145
| * | feat(defaults): dot-repeat [<Space> #31186Peter Aronoff2024-11-17
| | | | | | | | | | | | | | | | | | Problem: `[<Space>` and `]<Space>` do not support repetition. Solution: use `operatorfunc` and `g@l` to make these mappings dot repeatable.
| * | feat(lsp): highlight hover target/range #31110Riley Bruins2024-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Problem:** Despite the LSP providing the option for language servers to specify a range with a hover response (for highlighting), Neovim does not give the option to highlight this range. **Solution:** Add an option to `buf.hover()` which causes this range to be highlighted. Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
| * | fix(api): update "range" windows in nvim__redraw #31042luukvbaal2024-11-17
| | | | | | | | | | | | | | | | | | | | | Problem: nvim__redraw's "range" marks a buffer range for redraw, and subsequently flushes the UI without updating the windows containing that buffer. Solution: Implicitly update the screen, unless specified otherwise. Only update the screen with the last call of the treesitter on_changedtree() callback.
| * | fix(messages): proper multiline Lua print() messages #31205luukvbaal2024-11-17
| | | | | | | | | | | | | | | | | | Problem: Separate message emitted for each newline present in Lua print() arguments. Solution: Make msg_multiline() handle NUL bytes. Refactor print() to use msg_multiline(). Refactor vim.print() to use print().
| * | fix(lsp): type-errors, other nits in vim.lsp.log #31235Maria José Solano2024-11-16
| | |
| * | fix(treesitter): remove redundant on_bytes callback #31041luukvbaal2024-11-16
| | | | | | | | | | | | | | | | | | | | | Problem: Treesitter highlighter implements an on_bytes callback that just re-marks a buffer range for redraw. The edit that prompted the callback will already have done that. Solution: Remove redundant on_bytes callback from the treesitter highlighter module.
| * | fix(api): validation, documentation of hl_group #31195luukvbaal2024-11-16
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Documentation for "hl_group" in nvim_buf_set_extmark() is unclear. "hl_group" in nvim_echo() does not accept highlight group id. Solution: Move documentation for highlight group name/id to first mention of hl_group. Update nvim_echo() to accept highlight group id.
| * | feat(ui): don't show unfocusable windows in :tabs, 'tabline' #27984luukvbaal2024-11-16
| |/ | | | | | | | | | | | | Problem: Floating windows with focusable set to false can reasonably be expected to be UI elements but are listed in some outputs that should contain only regular windows. Solution: Hide unfocusable floating windows from the default tabline and :tabs.
| * docs: standardize doc for ChanInfo/ChanOpen autocmds/v:event (#31099)errael2024-11-16
| |
| * vim-patch:9.1.0866: filetype: LLVM IR files are not recognized (#31228)zeertzjq2024-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: LLVM IR files are not recognized Solution: detect '*.ll' files either as lifelines or llvm filetype (Wu, Zhenyu) closes: vim/vim#15824 https://github.com/vim/vim/commit/bc32bbddcfc2671158a4780838766ed2d1e14fa6 N/A patch: vim-patch:7e4b861: runtime(filetype): remove duplicated *.org file pattern Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
| * fix(ui): no fast context for prompt message kinds #31224luukvbaal2024-11-15
| | | | | | | | | | | | | | Problem: No longer able to show prompt messages with vim.ui_attach(). Solution: Do not execute callback in fast context for prompt message kinds. These events must be safe to show the incoming message so the event itself serves to indicate that the message should be shown immediately.
| * feat(default): bind `vim.lsp.buf.signature_help` in select mode (#31223)Yi Ming2024-11-15
| |
| * vim-patch:7c3b65e: runtime(cfg): only consider leading // as starting a commentChristian Clason2024-11-15
| | | | | | | | | | | | | | | | fixes: vim/vim#16051 https://github.com/vim/vim/commit/7c3b65eb3e882aeda7214faa17aef04d76d9c06f Co-authored-by: Christian Brabandt <cb@256bit.org>
| * vim-patch:0acd3ab: runtime(sh): better function support for bash/zsh in ↵Christian Clason2024-11-15
| | | | | | | | | | | | | | | | | | | | indent script closes: vim/vim#16052 https://github.com/vim/vim/commit/0acd3abfadf54a97a3cad999791603aa6a8b2248 Co-authored-by: Lukas Zapletal <lzap+git@redhat.com>
| * vim-patch:460799d: runtime(netrw): small fixes to netrw#BrowseXChristian Clason2024-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - do not enter dir in Netrw on opening - double quotes after start cause error on Windows See @chrisbra 's comments at [0] [0]: https://github.com/techntools/vim/commit/ff82e7a9dbef1cf98525be3186d65f450390e3b7#diff-39baf27d8f62071617bbef12f874cce31c0ebd02ec99e7b119474ca870c636a3R5279 https://github.com/vim/vim/commit/460799d885feeabd57b4e9336c513e53b2c7c86f Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
| * vim-patch:9.1.0865: filetype: org files are not recognizedChristian Clason2024-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: org files are not recognized Solution: detect '*.org' files as 'org' filetype, include filetype and syntax plugin (Luca Saccarola) closes: vim/vim#16054 https://github.com/vim/vim/commit/0684800c853ee5bd6e6736389b1a6ebe6a16a741 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
| * fix(treesitter): keep treeview open if source window is still open #31198Hyker2024-11-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: When there is a tree view opened by :InspectTree and the source buffer is open in multiple windows, closing one of the source windows will lead to the tree view being closed as well. Regression by #31181. Solution: Check how many source windows are open when trying to quit one. If there are more than one, keep the tree view(s) open. If the only source window is closed, also close the tree view(s). fix #31196
| * vim-patch:9.1.0864: message history is fixed to 200 (#31215)zeertzjq2024-11-15
| | | | | | | | | | | | | | | | | | | | | | | | Problem: message history is fixed to 200 Solution: Add the 'msghistory' option, increase the default value to 500 (Shougo Matsushita) closes: vim/vim#16048 https://github.com/vim/vim/commit/4bd9b2b2467e696061104a029000e9824c6c609e Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Co-authored-by: Milly <milly.ca@gmail.com>
| * Merge pull request #27874 from luukvbaal/funcerrbfredl2024-11-14
| |\ | | | | | | fix(messages)!: vim.ui_attach message callbacks are unsafe
| | * fix(messages)!: vim.ui_attach message callbacks are unsafeLuuk van Baal2024-11-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Lua callbacks for "msg_show" events with vim.ui_attach() are executed when it is not safe. Solution: Disallow non-fast API calls for "msg_show" event callbacks. Automatically detach callback after excessive errors. Make sure fast APIs do not modify Nvim state.
| * | feat(lsp): support utf-8 and utf-32 position encodingsLewis Russell2024-11-14
| |/ | | | | | | Resolves #30034
| * vim-patch:c4208da: runtime(compiler): include a Java Maven compiler pluginChristian Clason2024-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | @Konfekt suggested adding this [1]; I confirmed that both source repositories have permissive licenses [2], [3] that permit copying the code (at least where the compiler scripts are concerned). [1]: https://github.com/benknoble/Dotfiles/commit/570b1006fd794b0b9f5434b4fed4c2d785fcb05c [2]: https://github.com/JalaiAmitahl/maven-compiler.vim [3]: https://github.com/mikelue/vim-maven-plugin/issues/13 closes: vim/vim#16041 https://github.com/vim/vim/commit/c4208da0f4e59925f5e5828ed7725e22fd118e47 Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>
| * vim-patch:8e013b1: runtime(racket): update Racket runtime filesChristian Clason2024-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings the included Racket runtime files to commit c41bc5a (indent for[*]/lists with accumulator clause correctly, 2024-11-12) of https://github.com/benknoble/vim-racket. Note that not all files from that repository are included. closes: vim/vim#16046 https://github.com/vim/vim/commit/8e013b14211ee236f4866e7281ad4366e0ab18cd Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>
| * vim-patch:9b05326: runtime(doc): improve indentation in examples for ↵zeertzjq2024-11-14
| | | | | | | | | | | | | | | | | | | | netrw-handler related: vim/vim#16043 https://github.com/vim/vim/commit/9b05326afdb0359a2dd40470b2b47a6e422662e9 Co-authored-by: Christian Brabandt <cb@256bit.org>
| * vim-patch:8b96858: runtime(doc): improve examples for netrw-handler functionszeertzjq2024-11-14
| | | | | | | | | | | | | | | | fixes: vim/vim#16043 https://github.com/vim/vim/commit/8b96858996c4bdc68c055d2ef4afa5f88eda455e Co-authored-by: Christian Brabandt <cb@256bit.org>
| * fix(lsp): filter completion candidates based on completeopt (#30945)Kristijan Husak2024-11-13
| |
| * vim-patch:210c49b: runtime(compiler): update pylint linter (#31191)zeertzjq2024-11-13
| | | | | | | | | | | | | | closes: vim/vim#16039 https://github.com/vim/vim/commit/210c49bbe8b2edf15fd4fbbc089ec128e4c9c0c9 Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
| * vim-patch:5ca8f22: runtime(idris2): include filetype,indent+syntax plugins ↵Christian Clason2024-11-13
| | | | | | | | | | | | | | | | | | | | | | for (L)Idris2 + ipkg closes: vim/vim#15993 https://github.com/vim/vim/commit/5ca8f223f03dbd85f5e06c8e1d500c65f311eaf1 Co-authored-by: Serhii Khoma <srghma@gmail.com> Co-authored-by: Christian Clason <ch.clason+github@icloud.com>
| * vim-patch:f18987c: runtime(doc): clarify the use of filters and external ↵zeertzjq2024-11-12
| | | | | | | | | | | | | | | | | | commands (#31185) related: vim/vim#16044 https://github.com/vim/vim/commit/f18987caa5095e9ff154f924d952047c67c9fb64 Co-authored-by: Christian Brabandt <cb@256bit.org>
| * fix(treesitter): add 'QuitPre' event to autocommands in inspect_treehykerr2024-11-12
| | | | | | | | | | | | | | | | | | Problem: Quitting source buffer for ```:InspectTree``` command raises ```E855``` when source buffer and tree views are the only open buffers. Solution: Add ```QuitPre``` event to autocmd handling closing/hiding the source buffer to close all open tree views. This allows nvim to quit when source and tree buffers are the only open windows.
| * refactor(lsp): avoid redundant function wrappingNicolas Hillegeer2024-11-12
| | | | | | | | Leftover from #21026.
| * vim-patch:9.1.0853: filetype: kubernetes config file not recognizedChristian Clason2024-11-12
| | | | | | | | | | | | | | | | | | | | | | | | Problem: filetype: kubernetes config file not recognized Solution: detect '/.kube/config' file as yaml filetype (Jonathan Lopez) closes: vim/vim#11076 https://github.com/vim/vim/commit/6fbf63de865001dedafc227465e651926cf6f6dc Co-authored-by: Jonathan Lopez <jonathanglopez@gmail.com>
| * vim-patch:129a844: runtime(tar): Update tar.vim to support permissionsChristian Clason2024-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes enable tar.vim to keep permissions of files that were edited intact instead of replacing them with the default permissions. The major change for this is switching from "tar -OPxf", which reads out the contents of the selected file from an tar archive to stdout to "tar -pPxf" which extracts the selected file to the current directory with permissions intact This requirs the temporary directory to be created earlier. closes: vim/vim#7379 https://github.com/vim/vim/commit/129a8446d23cd9cb4445fcfea259cba5e0487d29 Co-authored-by: Lennart00 <73488709+Lennart00@users.noreply.github.com>
| * perf(lsp): use faster version of str_byteindexLewis Russell2024-11-11
| |
| * perf(filetype): optimize internal data structuresLewis Russell2024-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the type for the sorted pattern table from `vim.filetype.mapping[]` to `vim.filetype.mapping.sorted[]` E.g. instead of: ```lua { { ['/debian/changelog$'] = {'debchangelog', { parent = '/debian/' } }, { ['%.git/'] = { detect.git , { parent = 'git/', priority = -1 } }, } ``` It is now: ```lua { { '/debian/, '/debian/changelog$', 'debchangelog' }, { 'git/' , '%.git/' , detect.git , -1 }, } ``` Overall this should roughly cut the amount of tables used by 3, and replaces lots of hash indexes with array indexes.
| * Merge pull request #27813 from luukvbaal/msgidbfredl2024-11-11
| |\ | | | | | | feat(ext_messages): add hl_id to ext_messages chunks
| | * feat(ext_messages): add hl_id to ext_messages chunksLuuk van Baal2024-11-09
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Ext_messages chunks only contain the highlight attr id, which is not very useful for vim.ui_attach() consumers. Solotion: Add highlight group id to message chunks, which can easily be used to highlight text in the TUI through nvim_buf_set_extmark(): hl_group = synIDattr(id, "name").
| * | vim-patch:622f6f5: runtime(tex): extra Number highlighting causes issuesChristian Clason2024-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So let's revert "runtime(tex): add Number highlighting to syntax file" This (partly) reverts commits 8e6b5034f32049fd0 and 6065755a39d838aab fixes: vim/vim#16030 https://github.com/vim/vim/commit/622f6f5b9a9c2b88423f31a98e99cd3324446fcf Co-authored-by: Christian Brabandt <cb@256bit.org>
| * | vim-patch:5b63b23: runtime(netrw): directory symlink not resolved in tree ↵zeertzjq2024-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | view (#31161) closes: vim/vim#16020 https://github.com/vim/vim/commit/5b63b236a0af198f6c3c9883a3f6344b110dabb3 Co-authored-by: Christian Brabandt <cb@256bit.org>
| * | vim-patch:6065755: runtime(tex): update Last Change header in syntax scriptChristian Clason2024-11-11
| | | | | | | | | | | | | | | | | | | | | | | | related: vim/vim#11271 https://github.com/vim/vim/commit/6065755a39d838aaba03808f77d58c34b3b63e91 Co-authored-by: Christian Brabandt <cb@256bit.org>
| * | vim-patch:9.1.0849: there are a few typos in the source (#31159)zeertzjq2024-11-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: there are a few typos in the source. Solution: Correct typos (zeertzjq). closes: vim/vim#16026 https://github.com/vim/vim/commit/7c5152826f61bc968ba539ff6db3a55e75556bf2