summaryrefslogtreecommitdiffstats
path: root/src/configs/v.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/configs/v.rs')
-rw-r--r--src/configs/v.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configs/v.rs b/src/configs/v.rs
index dc8624c69..d49bad7fd 100644
--- a/src/configs/v.rs
+++ b/src/configs/v.rs
@@ -4,7 +4,7 @@ use serde::Serialize;
use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
-pub struct VLangConfig<'a> {
+pub struct VConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
@@ -14,15 +14,15 @@ pub struct VLangConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
-impl<'a> Default for VLangConfig<'a> {
+impl<'a> Default for VConfig<'a> {
fn default() -> Self {
- VLangConfig {
+ VConfig {
format: "via [$symbol($version )]($style)",
symbol: "V ",
style: "blue bold",
disabled: false,
detect_extensions: vec!["v"],
- detect_files: vec!["v.mod"],
+ detect_files: vec!["v.mod", "vpkg.json", ".vpkg-lock.json"],
detect_folders: vec![],
}
}