Skip to content

Commit ffe06d8

Browse files
authored
Merge pull request #2179 from h-east/update-ft_rust
Update ft_rust.{txt,jax}
2 parents 04fd695 + 7bc3395 commit ffe06d8

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

doc/ft_rust.jax

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,20 @@ g:rustfmt_emit_files~
163163
rustfmt を '--write-mode=overwrite' ではなく '--emit=files' (1 が指定
164164
されている場合) で実行するかどうかを決定します。 >
165165
let g:rustfmt_emit_files = 0
166-
166+
<
167+
*g:rustfmt_detect_version*
168+
g:rustfmt_detect_version~
169+
1 に設定すると、"rustfmt" からのバージョン出力を解析しようとします。パ
170+
フォーマンス上の理由から、デフォルトでは無効になっています。
171+
>
172+
let g:rustfmt_detect_version = 1
173+
<
174+
*g:rustfmt_find_toml*
175+
g:rustfmt_emit_files~
176+
1 に設定すると、現在のパスから上方向に "rustfmt.toml" ファイルを検索し
177+
ます。パフォーマンス上の理由から、デフォルトでは無効になっています。
178+
>
179+
let g:rustfmt_find_toml = 1
167180
<
168181
*g:rust_playpen_url*
169182
g:rust_playpen_url~

en/ft_rust.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,20 @@ g:rustfmt_emit_files~
159159
determines whether to run rustfmt with '--emit=files' (when 1 is
160160
provided) instead of '--write-mode=overwrite'. >
161161
let g:rustfmt_emit_files = 0
162-
162+
<
163+
*g:rustfmt_detect_version*
164+
g:rustfmt_detect_version~
165+
When set to 1, will try to parse the version output from "rustfmt".
166+
Disabled by default for performance reasons
167+
>
168+
let g:rustfmt_detect_version = 1
169+
<
170+
*g:rustfmt_find_toml*
171+
g:rustfmt_emit_files~
172+
When set to 1, will try to find "rustfmt.toml" file by searching from
173+
current path upwards. Disabled by default for performance reasons
174+
>
175+
let g:rustfmt_find_toml = 1
163176
<
164177
*g:rust_playpen_url*
165178
g:rust_playpen_url~

0 commit comments

Comments
 (0)