aboutsummaryrefslogtreecommitdiff
path: root/autoload
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-10Relese 1.01.0.0mitermayer
- Adding support for prettier 3.x
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-07Version bump1.0.0-betamitermayer
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-04-07Force reevaluation of autoformat settings at buffer write timeChris LaRose
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
2020-02-09New option: prettier#autoformat_require_pragmaHyeon Kim
The 'prettier#autoformat_config_present' option is useful but it only worked with files with pragma. Now, you can use 'autoformat_config_present' even with files without pragma using this 'autoformat_require_pragma' option.
2019-10-13Fix linting issue: autoloaded func needed 'abort'Atom Mac
2019-10-09Toggle the autoformat setting based on config file presence.Adam Macumber
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-13issues/184-fixing-undo-step - Removing previous naive implementation ofmitermayer
requirePragma - This commit ensures that we use `prettier` default way to identify pragmas for the auto save and remove our previous naive implementation
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-05Bumping 1.0 tag to alphamitermayer
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-19Enable the default editorconfig support againOskar
2018-06-15Fix PrettierAsync unchanged buffer rendering issueSam Howie
2018-06-15Fix PrettierAsync ignored file contents manglingSam Howie
2018-06-03Adding documentation for prettier partial formattingmitermayer
2018-06-03Enabling partial formatting but still maintaining support for fragmentmitermayer
formatting
2018-05-250.2.7 patch release0.2.7mitermayer
2018-05-25Remove trailing empty line introduced by appendSam Howie