summaryrefslogtreecommitdiff
path: root/autoload/prettier
AgeCommit message (Collapse)Author
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-08refactor: add version comparison functionsVictor S
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.
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.
2021-06-02enh: save buffer marks between runsRodrigo Gonzalez
2021-01-03Return cwd as default from s:ResolveExecutableNick Hynes
2020-10-16fixes #244Okan Karaman
2020-09-07Merge branch 'master' into issue/232-adding-support-for-prettier-2.xMitermayer Reis
2020-08-06Merge branch 'master' into prettier-exec-cmd-bufferMitermayer Reis
2020-08-04Add support for buffer-level prettier_exec_cmd, for prettier-stylelint for ↵Jay Sitter
instance
2020-07-16Fix error when quitting Neovim with :wqThorsten Ball
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
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
2020-03-21bugfix/issue-229-fixing-neovim-0-4-compatibilitymitermayer
- 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
2019-09-14issues/184-fixing-undo-step - fixing lintingmitermayer
2019-09-14issues/184-fixing-undo-step - Fixing undo stepmitermayer
- in order to bypass vimdefaults we can fake a change prior to formatting and merging that back to undostack operation
2019-09-14issues/184-fixing-undo-step - Writting should not trigger autocomandsmitermayer
- when formatting files we should not trigger auto commands
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-22Fixing job runner lock flagmitermayer
- Making sure we do not try to format a file again until execution is finally finished
2018-06-03Adding documentation for prettier partial formattingmitermayer
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-09Fixing neovim offset for removing extra linesmitermayer
2018-05-09use buffered mode for neovim jobchemzqm
2018-05-04Adding support for neovimmitermayer
2018-05-04Adding support for neovim finalizedmitermayer
2018-05-04Adding follow up todosmitermayer
2018-05-04Making sure only single job is executed at a time with neovimmitermayer
2018-05-04Adding neovim runner modulemitermayer
2018-05-04Creating buffer replace and save utilsmitermayer
2018-05-04Moving modern vim async formater into its own modulemitermayer
2018-05-04cosmetic comments and todosmitermayer
2018-05-04Refactoring out sync jobs and quickfix modulemitermayer
2018-05-04WIPmitermayer
2018-05-04Moving formating ultils to buffer modulemitermayer
- moving formating utils to buffer module to make it easier to interact and test