diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2018-05-02 21:36:47 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2018-05-02 21:36:47 -0700 |
| commit | bfd9fc654c34a7ffea5dd0f98dc17472ffe2baee (patch) | |
| tree | 2241c07b0e320163aa58f7f41a26b8e336d0082d /autoload | |
| parent | b3183e39ac2a485a228207922eedeb2791e20ee6 (diff) | |
| download | vim-prettier-bfd9fc654c34a7ffea5dd0f98dc17472ffe2baee.tar.xz | |
Cleaning up unecessary function
Diffstat (limited to 'autoload')
| -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 |
