zeertzjq
59a44caac6
vim-patch:eba5133: runtime(rust): Do not use rustfmt as 'formatprg' by 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
eba51337d4
Co-authored-by: Aaron Jacobs <jacobsa@google.com >
2025-10-27 23:45:14 +00:00
zeertzjq
2322ae403b
vim-patch:4ac995b: runtime(rust): set formatprg to rustfmt ( #33245 )
...
closes : vim/vim#16967
4ac995bf93
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com >
2025-04-01 17:20:11 +08:00
Christian Clason
88085c2e80
vim-patch:7c3f9af: runtime(misc): unset compiler in various ftplugins
...
just to foster best practices
closes : vim/vim#15798
7c3f9af0ed
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com >
2024-10-07 19:19:15 +02:00
Christian Clason
2f5b8a0092
vim-patch:9.1.0464: no whitespace padding in commentstring option in ftplugins
...
Problem: no whitespace padding in commentstring option in ftplugins
Solution: Change default to include whitespace padding, update
existing filetype plugins with the new default value
(Riley Bruins)
closes : vim/vim#14843
0a0830624a
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-06-04 10:38:55 +02:00
Christian Clason
920ef1fd71
vim-patch:ef21bcaab145
...
runtime(rust): Respect no_plugin_maps and no_rust_maps globals (vim/vim#14221 )
ef21bcaab1
Co-authored-by: MyyPo <110892040+MyyPo@users.noreply.github.com >
2024-03-18 22:01:33 +01:00
Christian Clason
2dd5e472df
vim-patch:fc93594d562d
...
runtime(rust): sync rust runtime files with upstream (vim/vim#13075 )
fc93594d56
Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com >
2023-09-13 17:23:45 +02:00
Christian Clason
278805dfac
vim-patch:21aaff3faa82
...
Update my name and email in runtime files (vim/vim#12763 )
21aaff3faa
Co-authored-by: Lily Ballard <lily@ballards.net >
2023-08-11 22:06:37 +02:00
Justin M. Keyes
0312fc2ddb
vim-patch:3c2881dc1195
...
Update runtime files. Add Rust support.
3c2881dc11
2017-11-07 01:04:17 +01:00