prettier / prettier/vim-prettier

On format, split gets scrolled to bottom of file.

Open
#248 6 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.8k
Forks
137
PR merge metrics
No merged PRs in 30d

Description

Do you want to request a feature or report a bug?
Report a bug.

What is the current/expected behavior?
When a file is formatted, my split open to the same file gets scrolled to the bottom. This is pretty annoying.

What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-alpha

What version of prettier are you using - (output of :PrettierCliVersion) ?
1.19.1

What is your prettier executable path - (output of :PrettierCliPath) ?
/home/dylan/development/siesde/drp/node_modules/.bin/prettier

Did this work in previous versions of vim-prettier and/or prettier ?
I do not know.

This happens in every file type I've tried so far, vue files and javascript files.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Vim using the reported vim-prettier 1.0.0-alpha and Prettier 1.19.1 versions with JavaScript or Vue files. Start from the formatting command and its handling of the split window; done means formatting no longer scrolls the split showing the same file to the bottom.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.