MunifTanjim / prettier.nvim

Prettier plugin for Neovim's built-in LSP client.
MIT License
289 stars 9 forks source link

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

Closed flppv closed 1 year ago

flppv commented 2 years ago

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

MunifTanjim commented 2 years ago

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

mustafaergul commented 1 year ago

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

MunifTanjim commented 1 year ago

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