From b16bb29156bd5c50c8565a4512abe21e49097684 Mon Sep 17 00:00:00 2001 From: James Vaughan Date: Mon, 13 Apr 2020 22:44:35 -0700 Subject: Autoformat .rb files --- ftplugin/ruby.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index f93997d..53d13cf 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -4,5 +4,5 @@ let b:prettier_ft_default_args = { augroup Prettier autocmd! - autocmd BufWritePre *.ruby call prettier#Autoformat() + autocmd BufWritePre *.rb,*.ruby call prettier#Autoformat() augroup end -- cgit v1.3 From 27fadfd62040fa90b86c23dbc1736a335374a7c7 Mon Sep 17 00:00:00 2001 From: Marco Comes Date: Sun, 24 May 2020 17:58:14 +0200 Subject: Add missing ".yml" in autocmd --- ftplugin/yaml.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/yaml.vim b/ftplugin/yaml.vim index 2d0564d..60f669b 100644 --- a/ftplugin/yaml.vim +++ b/ftplugin/yaml.vim @@ -4,5 +4,5 @@ let b:prettier_ft_default_args = { augroup Prettier autocmd! - autocmd BufWritePre *.yaml call prettier#Autoformat() + autocmd BufWritePre *.yml,*.yaml call prettier#Autoformat() augroup end -- cgit v1.3 From 29449e7a155b858085ddfe3cab1f770464a68cdf Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Thu, 16 Jul 2020 10:27:12 +0200 Subject: Fix error when quitting Neovim with :wq 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 --- autoload/prettier/job/async/neovim.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/prettier/job/async/neovim.vim b/autoload/prettier/job/async/neovim.vim index 7f69f4e..35e5f82 100644 --- a/autoload/prettier/job/async/neovim.vim +++ b/autoload/prettier/job/async/neovim.vim @@ -42,6 +42,8 @@ endfunction " " note that somehow we exectuing both async and sync on nvim when using the autoformat function! s:onExit(status, info, out, err) abort + if len(a:out) == 0 | return | endif + let l:currentBufferNumber = bufnr('%') let l:isInsideAnotherBuffer = a:info.buf_nr != l:currentBufferNumber ? 1 : 0 let l:last = a:out[len(a:out) - 1] -- cgit v1.3 From ef2977397babd7d6c204124e885b467f07b54381 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2020 11:32:21 +0000 Subject: Bump lodash from 4.17.15 to 4.17.19 Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1bf61f4..6b0974a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2131,9 +2131,9 @@ lodash.sortby@^4.7.0: integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4: - version "4.17.15" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" - integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== + version "4.17.19" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" + integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== loose-envify@^1.0.0: version "1.4.0" -- cgit v1.3 From 184f6232605a1296d0d1d48b5608efeeadafde24 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2020 07:37:08 +0000 Subject: Bump acorn from 5.7.3 to 5.7.4 Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6b0974a..65dd6e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -75,9 +75,9 @@ acorn-walk@^6.0.1: integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== acorn@^5.5.3: - version "5.7.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" - integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== + version "5.7.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" + integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== acorn@^6.0.1: version "6.4.0" -- cgit v1.3