Skip to content

:Prettier fills the default register with “x” #244

@bpierre

Description

@bpierre

On Neovim, formatting a file replaces the default register by x.

The issue gets fixed by commenting these three lines: https://github.com/prettier/vim-prettier/blob/master/autoload/prettier/utils/buffer.vim#L11-L15

The cursor stays in place even after having commented these lines − is it really needed on Neovim?

  • :PrettierVersion => 1.0.0-alpha
  • :PrettierCliVersion => 2.0.5
  • Did this work before? => I am not sure, I was using a custom function to call the prettier CLI before, and I don’t remember if the move to the Vim plugin corresponds to my default register getting “randomly” replaced by x (it took me a while to identify the cause!).

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