Skip to content

Commit

Permalink
Expand snippet path
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Feb 12, 2019
1 parent 2e6be97 commit b1c3920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/mod.rs
Expand Up @@ -67,7 +67,8 @@ impl Into<LanguageConfig> for LanguageConfigToml {
.snippets
.unwrap_or_default()
.iter()
.map(path::PathBuf::from)
.map(|s| shellexpand::full(s).unwrap())
.map(|s| path::PathBuf::from(s.as_ref()))
.filter_map(|p| load_snippet(p).ok())
.fold(BTreeMap::new(), |mut a, mut b| {
a.append(&mut b);
Expand Down

0 comments on commit b1c3920

Please sign in to comment.