| Age | Commit message (Collapse) | Author |
|
Removed TODO comment that reminded to compose the flags of the CLI
command from a list using list methods. The task is completed.
|
|
Considered the addition and deprecation versions of each Prettier option
contained in the object with details about the CLI flags when composing
the CLI command.
|
|
Added Vim foldings to sections of the code in config.vim to improve file
navigation.
|
|
Added a function that selects the flags that are compatible with
the version of the Prettier CLI being used. This is part of a plan to
compose the flags of the CLI command from an object with flag details.
|
|
Added a function to filter flags that are uncompatible with a supplied
version. This is part of a plan to compose the flags of the CLI command
from an object with flag details.
|
|
Added 2 functions that compare versions strings according to semantic
version. This is part of a plan to compose the flags of the CLI command
from an object with flag details.
|
|
Added two helper functions to get the version of the Prettier CLI as a
string. This is part of a plan to compose the CLI command from an object
with flag details.
|
|
Added an object with details about Prettier CLI flags. This is part of a
plan to compose the flags of the CLI command from a general object with
flag details.
|
|
Changed the function to make it reusable across versions of the CLI
flag. This is part of a plan to compose the CLI command from an object
with details about the flags.
|
|
Adapted flag-mapper functions to use the same parameters. This is part of a
plan to expose a common interface from planned objects with flags, to make code
flexible to future changes, and to compose the CLI command from a general
object with flag details.
|
|
Added general mapper functions that map flag names to parts of a CLI command.
They are part a plan to use an object with flag details to compose the CLI
command.
|
|
Added a new function to return the CLI command part for the --stdin flag. This
is part of a plan use an object with flag details to compose the CLI command.
|
|
Added a new function to return the CLI command part for the --loglevel flag.
This is part of a plan to compose the CLI command from a general object with
flag details.
|
|
Added a new function to get the command part of the --stdin-filepath flag. This
is part of a plan to compose the CLI command from an object with flag details.
|
|
Split the function that returns the visual selection range into two parts that
return the start and the end of the range respectively, and use them in the
CLI-command composer. This is part of a plan to use a general object with
details about flags to compose the CLI command.
|
|
|
|
|
|
|
|
|
|
|
|
instance
|
|
This fixes #215 by implementing the fix I've suggested in [my
comment][0].
After [the suggestion to open a PR][1], here we are :)
[0]: https://github.com/prettier/vim-prettier/issues/215#issuecomment-629681399
[1]: https://github.com/prettier/vim-prettier/issues/215#issuecomment-648657236
|
|
2.x
- Updating default config
- Adding missing configuration
- Updating yarn lock
- Updating package.json depedencies
|
|
- Updated nvim test version to latest 0.4.3 on Dockerfile
- Updated nvim async job to behave similar to vim8
- Removing support for python plugins since it has been archieved from
repository
- bumping prettier dep
- updating snapshots
|
|
|
|
- in order to bypass vimdefaults we can fake a change prior to
formatting and merging that back to undostack operation
|
|
- when formatting files we should not trigger auto commands
|
|
- Our previous undo implementation tried to be naive on implementing
require-pragma, and created some undo bugs due to it. This diff enables
us to use the prettier upstream support for require-pragma
- On subsequent PR's we will completetly phase out the previous undo
implementation in favour to this one in order to fix bug https://github.com/prettier/vim-prettier/issues/184
|
|
- parsers are no longer parsed so we required to make sure to give
prettier the filepath
|
|
- Porting fixes done on 5779a87d901da3f44991feb3a6480b1156c37f3f
- Porting fixes done on c91d1bc5c15677fdb6585fc54c680809329ee88a
- Porting fixes done on c0f7d81faf849589688c4584edb9c3b8d50afb84
- Fixing linting from 1c601bcba1eed6faa15b255aeb765a12717d7de3
|
|
|
|
|
|
|
|
- Making sure we do not try to format a file again until execution is
finally finished
|
|
|
|
formatting
|
|
- adding facebook presets as a configurable option to overwrite prettier
defaults
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- moving formating utils to buffer module to make it easier to interact
and test
|