diff options
| -rw-r--r-- | autoload/prettier.vim | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim index 71f21d6..bd47e60 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -21,7 +21,7 @@ function! prettier#PrettierCliPath() abort if l:execCmd != -1 echom l:execCmd else - call s:Suggest_Install_Prettier() + call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR') endif endfunction @@ -32,7 +32,7 @@ function! prettier#PrettierCli(user_input) abort let l:out = system(l:execCmd. ' ' . a:user_input) echom l:out else - call s:Suggest_Install_Prettier() + call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR') endif endfunction @@ -61,7 +61,7 @@ function! prettier#Prettier(...) abort call s:Prettier_Exec_Sync(l:cmd, l:startSelection, l:endSelection) endif else - call s:Suggest_Install_Prettier() + call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR') endif endfunction @@ -458,8 +458,3 @@ function! s:Prettier_Parse_Error(errors) abort call s:Handle_Parsing_Errors(a:errors) endif endfunction - -" If we can't find any prettier installing we then suggest where to get it from -function! s:Suggest_Install_Prettier() abort - call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR') -endfunction |
