diff options
| -rw-r--r-- | vimulti.clj | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vimulti.clj b/vimulti.clj index 38c87c6..6c59807 100644 --- a/vimulti.clj +++ b/vimulti.clj @@ -54,8 +54,11 @@ ;; target should be a string like "app-name:branch" or "app-name@tag" ;; returns a map with keys :app-name :branch :tag... -(defn- parse-target-string [target] - (let [branch-style? (str/includes? target ":") +(defn- parse-target-string [target-string] + (let [target (or target-string + (:default-target config) + "nvim:") + branch-style? (str/includes? target ":") tag-style? (str/includes? target "@") alias-style? (and (not branch-style?) (not tag-style?))] (if alias-style? |
