Skip to content

Commit ba535fb

Browse files
authored
ignore/types: improve 'vim' and 'vimscript' types
This adds various Vim config files to the glob patterns. PR #2044
1 parent 427aaee commit ba535fb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

crates/ignore/src/default_types.rs

+9-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
2121
("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]),
2222
("avro", &["*.avdl", "*.avpr", "*.avsc"]),
2323
("awk", &["*.awk"]),
24-
("bazel", &["*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "WORKSPACE"]),
24+
("bazel", &[
25+
"*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "WORKSPACE",
26+
]),
2527
("bitbake", &["*.bb", "*.bbappend", "*.bbclass", "*.conf", "*.inc"]),
2628
("brotli", &["*.br"]),
2729
("buildstream", &["*.bst"]),
@@ -243,8 +245,12 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
243245
("vcl", &["*.vcl"]),
244246
("verilog", &["*.v", "*.vh", "*.sv", "*.svh"]),
245247
("vhdl", &["*.vhd", "*.vhdl"]),
246-
("vim", &["*.vim"]),
247-
("vimscript", &["*.vim"]),
248+
("vim", &[
249+
"*.vim", ".vimrc", ".gvimrc", "vimrc", "gvimrc", "_vimrc", "_gvimrc",
250+
]),
251+
("vimscript", &[
252+
"*.vim", ".vimrc", ".gvimrc", "vimrc", "gvimrc", "_vimrc", "_gvimrc",
253+
]),
248254
("webidl", &["*.idl", "*.webidl", "*.widl"]),
249255
("wiki", &["*.mediawiki", "*.wiki"]),
250256
("xml", &[

0 commit comments

Comments
 (0)