From d01d69149b410673d744a1ad4ed04c0019194039 Mon Sep 17 00:00:00 2001 From: Antonio Gutierrez Date: Mon, 17 Sep 2018 19:34:11 +0200 Subject: [PATCH] deoplete-rust: add shorthand home (~) expansion Previously, only absolute paths were required, this change allows to use paths relative to the home directory shorthand command (~) Fixes: https://github.com/sebastianmarkow/deoplete-rust/issues/4 Signed-off-by: Antonio Gutierrez --- plugin/deoplete-rust.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/deoplete-rust.vim b/plugin/deoplete-rust.vim index 2610972..7515871 100644 --- a/plugin/deoplete-rust.vim +++ b/plugin/deoplete-rust.vim @@ -7,10 +7,10 @@ let s:save_cpoptions = &cpoptions set cpoptions&vim let g:deoplete#sources#rust#racer_binary= - \ get(g:, 'deoplete#sources#rust#racer_binary', '') + \ expand(get(g:, 'deoplete#sources#rust#racer_binary', '')) let g:deoplete#sources#rust#rust_source_path= - \ get(g:, 'deoplete#sources#rust#rust_source_path', '') + \ expand(get(g:, 'deoplete#sources#rust#rust_source_path', '')) let g:deoplete#sources#rust#documentation_max_height= \ get(g:, 'deoplete#sources#rust#documentation_max_height', 20)