Skip to content

Vim-prettier doesn't use project config #162

@szymkab

Description

@szymkab

Do you want to request a feature or report a bug?
Bug

What is the current/expected behavior?
Vim-prettier is not using project's config. This is my config:

module.exports = {
  printWidth: 80,
  tabWidth: 2,
  useTabs: false,
  semi: true,
  singleQuote: false,
  trailingComma: "all",
  bracketSpacing: true,
};

And when I type :Prettier it formats my code from:

import { x } from "x"; to import {x} from 'x';

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.14.3^@

What is your prettier executable path - (output of :PrettierCliPath) ?
/Volumes/D\ 2/projects/foo/node_modules/.bin/prettier

Did this work in previous versions of vim-prettier and/or prettier ?
Dunno, I'm using it first time

Maybe I skiped some instalation step? I'm using Vundle as plugin manager, I've added line Plugin 'prettier/vim-prettier' and typed yarn install at .vim/bundle/vim-prettier.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions