aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/rustfmt.vim
Commit message (Collapse)AuthorAge
* vim-patch:068c060: runtime(rustfmt): not correctly escaping directory names ↵zeertzjq2026-03-30
| | | | | | | | | | (#38597) Problem: runtime(rustfmt): not correctly escaping directory names Solution: Use fnamescape() (Michał Majchrowicz) https://github.com/vim/vim/commit/068c0604c95e76f0f98984f908747deba94ed155 Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:ad0dd7c: runtime(rustfmt): Recover accidentally deleted code, ↵zeertzjq2026-01-27
| | | | | | | | | | don't hide rustfmt error closes: vim/vim#19251 https://github.com/vim/vim/commit/ad0dd7cd1ef405086e8266f8f62221a307a72fe9 Co-authored-by: Arkissa <mrarkssac@gmail.com>
* vim-patch:eba5133: runtime(rust): Do not use rustfmt as 'formatprg' by ↵zeertzjq2025-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | default (#36361) This reverts commit 4ac995bf9366c6624a0724d19b2226f4c95694b3. This was added in vim/vim#16807, with no explanation for why it was necessary beyond "it's an example of an idea". It completely breaks `gq` for me—rustfmt doesn't reflow comments so is not an appropriate tool here! Beyond that, formatting a selection with rustfmt treats that selection as if it were an entire file, throwing away any indentation. For example, the commit causes `gq` to turn this: ```rust pub fn foo() { // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah } ``` into this: ```rust pub fn foo() { // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah } ``` which is totally wrong. In contrast, if I clear `formatprg` then `gq` does the right thing again: ```rust pub fn foo() { // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah // blah blah blah blah blah blah } ``` related: vim/vim#16967 related: vim/vim#17055 closes: vim/vim#18640 https://github.com/vim/vim/commit/eba51337d4b8051b768164f3394d680742234ca8 Co-authored-by: Aaron Jacobs <jacobsa@google.com>
* vim-patch:1afe8c3: runtime(rust): improve loading timeChristian Clason2025-07-20
| | | | | | | | | fixes: vim/vim#17745 closes: vim/vim#17749 https://github.com/vim/vim/commit/1afe8c3a4d9d61a4762c11ddf4c50050a92bd23e Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:4ac995b: runtime(rust): set formatprg to rustfmt (#33245)zeertzjq2025-04-01
| | | | | | | closes: vim/vim#16967 https://github.com/vim/vim/commit/4ac995bf9366c6624a0724d19b2226f4c95694b3 Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
* vim-patch:dbf749bd5aae (#25665)zeertzjq2023-10-16
| | | | | | | | | | | runtime: Fix more typos (vim/vim#13354) * Fix more typos * Fix typos in ignored runtime/ directory https://github.com/vim/vim/commit/dbf749bd5aaef6ea2d28bce081349785d174d96a Co-authored-by: Viktor Szépe <viktor@szepe.net>
* vim-patch:fc93594d562dChristian Clason2023-09-13
| | | | | | | | runtime(rust): sync rust runtime files with upstream (vim/vim#13075) https://github.com/vim/vim/commit/fc93594d562dbbd9da03c89754538f91efd0c7ca Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
* vim-patch:3c2881dc1195Justin M. Keyes2017-11-07
Update runtime files. Add Rust support. https://github.com/vim/vim/commit/3c2881dc1195f53ebafc387378399ddd6cb677a7