Neovim packer - can't get vim-prettier to load by filetype

Viewed 1146

I'm trying to load vim-prettier to load in packer.nvim by file type, but must be doing something wrong. My packer config looks like:

    use {
        'prettier/vim-prettier',
        run = 'yarn install',
        ft = {'javascript', 'typescript', 'css', 'less', 'scss', 'graphql', 'markdown', 'vue', 'html'}
    }

However, when I load a javascript file, and try to run :Prettier, I get the result: E492: Not an editor command: Prettier

If I remove the ft part of the config, prettier is loaded for everything, which I'm trying to avoid. Is there another part of the config I'm missing to make ft load the opt plugin correctly?

Thanks!

0 Answers
Related