diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-12-09 20:42:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-09 20:42:12 +0800 |
| commit | 58d5d9771959407378e1cc63905d4982e9e4c891 (patch) | |
| tree | 985d0121ac51135c31a54e02de686495ff242a45 /runtime/lua/vim/_stringbuffer.lua | |
| parent | c24cc4c352d8e67955ef4696f8cf83bc6d8852f3 (diff) | |
| download | rneovim-58d5d9771959407378e1cc63905d4982e9e4c891.tar.gz rneovim-58d5d9771959407378e1cc63905d4982e9e4c891.tar.bz2 rneovim-58d5d9771959407378e1cc63905d4982e9e4c891.zip | |
vim-patch:98ef843: runtime(rust): use textwidth=100 for the Rust recommended style (#36875)
The help text here said 99 was the recommended style for the standard
library, but I can't find a citation for this anywhere. In contrast the
Rust Style Guide hosted on rust-lang.org
[says](https://doc.rust-lang.org/stable/style-guide/#indentation-and-line-width)
the maximum line width is 100, and rustfmt
[agrees](https://github.com/rust-lang/rust/blob/37aa2135b5d0936bd13aa699d941aaa94fbaa645/src/tools/rustfmt/src/config/options.rs#L570).
Having the two disagree causes an annoying off-by-one error in vim: if
you configure vim to highlight too-long lines then it will occasionally
complain about a line that rustfmt refuses to fix.
closes: vim/vim#18892
https://github.com/vim/vim/commit/98ef8433b654ee96c57b66348b767edc73a44406
Co-authored-by: Aaron Jacobs <jacobsa@google.com>
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions