From c4636a6843d5b940dc14f2efb7624586d734b475 Mon Sep 17 00:00:00 2001 From: Patrick Gingras <775.pg.12@gmail.com> Date: Tue, 16 Aug 2022 20:41:53 -0400 Subject: [PATCH] resolve executable starting from open file path --- autoload/prettier/resolver/executable.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/prettier/resolver/executable.vim b/autoload/prettier/resolver/executable.vim index 4c6603e..f80da7c 100644 --- a/autoload/prettier/resolver/executable.vim +++ b/autoload/prettier/resolver/executable.vim @@ -12,7 +12,7 @@ function! prettier#resolver#executable#getPath() abort return l:user_defined_exec_path endif - let l:localExec = s:ResolveExecutable(getcwd()) + let l:localExec = s:ResolveExecutable(expand('%:p:h')) if executable(l:localExec) return fnameescape(l:localExec) endif