summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda_pp <rhysd@users.noreply.github.com>2021-10-27 23:59:44 +0900
committerGitHub <noreply@github.com>2021-10-27 10:59:44 -0400
commitba535fb5a34f6d703fc652e8dfc23c0fed78fc74 (patch)
tree67103a3946b2f064a09a5b0b770bf5a51fa2c8a5
parent427aaeeb2ea8d05e08fe5c5767c4b851640253a1 (diff)
ignore/types: improve 'vim' and 'vimscript' types
This adds various Vim config files to the glob patterns. PR #2044
-rw-r--r--crates/ignore/src/default_types.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 0996ff39..a05b01c7 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -21,7 +21,9 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]),
("avro", &["*.avdl", "*.avpr", "*.avsc"]),
("awk", &["*.awk"]),
- ("bazel", &["*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "WORKSPACE"]),
+ ("bazel", &[
+ "*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "WORKSPACE",
+ ]),
("bitbake", &["*.bb", "*.bbappend", "*.bbclass", "*.conf", "*.inc"]),
("brotli", &["*.br"]),
("buildstream", &["*.bst"]),
@@ -243,8 +245,12 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("vcl", &["*.vcl"]),
("verilog", &["*.v", "*.vh", "*.sv", "*.svh"]),
("vhdl", &["*.vhd", "*.vhdl"]),
- ("vim", &["*.vim"]),
- ("vimscript", &["*.vim"]),
+ ("vim", &[
+ "*.vim", ".vimrc", ".gvimrc", "vimrc", "gvimrc", "_vimrc", "_gvimrc",
+ ]),
+ ("vimscript", &[
+ "*.vim", ".vimrc", ".gvimrc", "vimrc", "gvimrc", "_vimrc", "_gvimrc",
+ ]),
("webidl", &["*.idl", "*.webidl", "*.widl"]),
("wiki", &["*.mediawiki", "*.wiki"]),
("xml", &[