aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-08-23 05:39:29 -0700
committerGitHub <noreply@github.com>2022-08-23 05:39:29 -0700
commit607ff48b970b89c3e4e3825b88d9cfd05b7aaea5 (patch)
tree8892887eed744f92a1706663f440de3c35ae0fb9
parentfeat: allow attaching to paths inside archives (#1687) (diff)
downloadnvim-lspconfig-607ff48b970b89c3e4e3825b88d9cfd05b7aaea5.tar
nvim-lspconfig-607ff48b970b89c3e4e3825b88d9cfd05b7aaea5.tar.gz
nvim-lspconfig-607ff48b970b89c3e4e3825b88d9cfd05b7aaea5.tar.bz2
nvim-lspconfig-607ff48b970b89c3e4e3825b88d9cfd05b7aaea5.tar.lz
nvim-lspconfig-607ff48b970b89c3e4e3825b88d9cfd05b7aaea5.tar.xz
nvim-lspconfig-607ff48b970b89c3e4e3825b88d9cfd05b7aaea5.tar.zst
nvim-lspconfig-607ff48b970b89c3e4e3825b88d9cfd05b7aaea5.zip
Revert "docs: vim.lsp.buf.formatting() is deprecated #2077
This reverts commit 589d38d3cf2e711cf848c12ed1d6ba38899a2f38.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index a20aa4b0..4fb5740f 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',function() vim.lsp.buf.format { async = true } end, bufopts)
+ vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts)
end
local lsp_flags = {