aboutsummaryrefslogtreecommitdiff
path: root/autoload/prettier/resolver/config.vim
AgeCommit message (Collapse)Author
2026-02-21all: remove unnecessary flagsHEADmainShulhan
If in vimrc we set the tabstop to 8, the plugin will format the file with tab width set to 8. This plugin should use whatever value from prettier config if it exist or default prettier itself. In another words, I want prettier that I use to be opinionated, less configurations, like gofmt.
2023-10-09docs: remove TODO comment of completed taskVictor S
Removed TODO comment that reminded to compose the flags of the CLI command from a list using list methods. The task is completed.
2023-10-09fix: look option and CLI versions to form commandVictor S
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.
2023-10-09docs: add Vim foldings to config.vimVictor S
Added Vim foldings to sections of the code in config.vim to improve file navigation.
2023-10-09refactor: add function to select compatible flagsVictor S
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.
2023-10-09refactor: add function to filter flags by versionVictor S
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.
2023-10-07refactor: add helper functions to get CLI versionVictor S
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.
2023-10-07refactor: add object with Prettier flagsVictor S
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.
2023-10-07refactor: make mapper function reusableVictor S
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.
2023-10-05refactor: use common parameters in flag functionsVictor S
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.
2023-10-04refactor: add flag-mapper functionsVictor S
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.
2023-10-04refactor: use function to get --stdinVictor S
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.
2023-10-04refactor: use function to get --loglevelVictor S
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.
2023-10-04refactor: use function to get --stdin-filepathVictor S
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.
2023-10-04refactor: split range getter into two partsVictor S
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.
2020-04-27issue/232-adding-support-for-prettier-2.x - Adding support for prettiermitermayer
2.x - Updating default config - Adding missing configuration - Updating yarn lock - Updating package.json depedencies
2019-09-12issues/184-fixing-undo-step - Adding support for require-pragmamitermayer
- 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
2019-08-27Fixing bug where formatting filepath could not be foundmitermayer
- parsers are no longer parsed so we required to make sure to give prettier the filepath
2019-08-26porting-master-fixes-to-release-1.xmitermayer
- Porting fixes done on 5779a87d901da3f44991feb3a6480b1156c37f3f - Porting fixes done on c91d1bc5c15677fdb6585fc54c680809329ee88a - Porting fixes done on c0f7d81faf849589688c4584edb9c3b8d50afb84 - Fixing linting from 1c601bcba1eed6faa15b255aeb765a12717d7de3
2018-11-06space for --use-tabsAndrei Glingeanu
2018-11-05removing already actioned todomitermayer
2018-11-05Merge branch 'master' into release/1.xmitermayer
2018-06-03Enabling partial formatting but still maintaining support for fragmentmitermayer
formatting
2018-05-16Adding presetsmitermayer
- adding facebook presets as a configurable option to overwrite prettier defaults
2018-05-03Moving argument build into config resolver modulemitermayer