prettier.nvim icon indicating copy to clipboard operation
prettier.nvim copied to clipboard

vim.lsp.buf.formatting is deprecated. Use vim.lsp.buf.format { async = true } instead

Open flppv opened this issue 1 year ago • 1 comments

Seeing this message with a selection of what to use for formatting (tsserver or null-ls) when I save the file with nvim(HEAD) configured exactly as in README.md from this repo. I'd create a PR with updated example config, if I would be more experienced :D

flppv avatar Sep 13 '22 01:09 flppv

If you wanna update the README.md file, sure, go ahead. Or I can do it later.

MunifTanjim avatar Oct 05 '22 08:10 MunifTanjim

Couldn't achieve with vim.lsp.buf.format { async = true } as well :/

mustafaergul avatar Nov 18 '22 13:11 mustafaergul

The README is updated by https://github.com/MunifTanjim/prettier.nvim/pull/19. Try that to see if your problem resolves @mustafaergul .

MunifTanjim avatar Nov 19 '22 06:11 MunifTanjim