Skip to content

Wrong parser used for markdown files #186

@christodoulos

Description

@christodoulos

Do you want to request a feature or report a bug?
Bug
What is the current/expected behavior?
Using nvim and editing markdown files. vim-prettier should use markdown parser, instead uses json parser. From nvim log:

Executing BufWritePre Autocommands for "*.md"
autocommand PrettierAsync

Executing command: "'/bin/bash' '-c' 'prettier --print-width 80 --tab-width 2 --use-tabs false --semi true --single-quote true --bracket-spacing false --jsx-bracket-same-line true --arrow-parens avoid --trailing-comma all --parser json --config-precedence prefer-file --pr..."


Prettier: failed to parse buffer.

What version of vim-prettier are you using - (output of :PrettierVersion) ?
0.2.7
What version of prettier are you using - (output of :PrettierCliVersion) ?
1.17.0
What is your prettier executable path - (output of :PrettierCliPath) ?
prettier
Did this work in previous versions of vim-prettier and/or prettier ?
I don't know (never used vim-prettier before). Outside nvim the command prettier myfile.md works as expected

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