aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorHorror Proton <107091537+horror-proton@users.noreply.github.com>2022-10-02 08:22:10 +0800
committerGitHub <noreply@github.com>2022-10-02 08:22:10 +0800
commit03a09b930b6efee91844ccffe96cb3fcc01da385 (patch)
tree7b88e3270bd7cad221fa0dd46c8f4073e77600ba /README.md
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar
nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.gz
nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.bz2
nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.lz
nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.xz
nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.zst
nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.zip
docs: `vim.lsp.buf.formatting()` is deprecated (#2166)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4fb5740f..fb4c3d99 100644
--- a/README.md
+++ b/README.md
@@ -77,7 +77,7 @@ local on_attach = function(client, bufnr)
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, bufopts)
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
- vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts)
+ vim.keymap.set('n', '<space>f', function() vim.lsp.buf.format { async = true } end, bufopts)
end
local lsp_flags = {