Skip to content

Not an editor command: prettier #117

@exapsy

Description

@exapsy

Error

Error detected while processing FileType Auto commands for "javascript":
E492: Not an editor command: prettier                                   

Config & Setup

.vimrc

augroup autoformat_settings
    autocmd Filetype javascript prettier
augroup END

Plugins

Plugin 'VundleVim/Vundle.vim'       
Plugin 'Valloric/YouCompleteMe'     
Plugin 'scrooloose/nerdtree'        
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'leafgarland/typescript-vim' 
Plugin 'Qurami/tsuquyomi'           
Plugin 'tomasiser/vim-code-dark'    
Plugin 'airblade/vim-gitgutter'     
Plugin 'ctrlpvim/ctrlp.vim'         
Plugin 'tacahiroy/ctrlp-funky'      
Plugin 'tpope/vim-fugitive'         
> Plugin 'google/vim-maktaba'         
> Plugin 'google/vim-codefmt'         
> Plugin 'google/vim-glaive'          
Plugin 'majutsushi/tagbar'          
Plugin 'ternjs/tern_for_vim'        
Plugin 'pangloss/vim-javascript'    

What have I done

To make sure this is not an issue of non-existant binary or node_module, I installed prettier on both local npm and global npm.

npm install -g prettier
npm install --save-dev --save-exact prettier

I am not sure though if you integrate this already in the plugin in some vim-y way, which would mean that I don't have to install it.
Either way, it didn't seem to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions