From 134a291fecc5c1fa5d01e398d2d6ef03b3dc5149 Mon Sep 17 00:00:00 2001 From: Kurtis Date: Fri, 3 Jun 2022 11:09:46 -0400 Subject: fix(docs): vim.lsp.buf.format -> vim.lsp.buf.formatting (#1936) There doesn't appear to actually be a function called `format`. Instead, I believe what we actually want here is a call `formatting`. Co-authored-by: Kurtis Nusbaum --- doc/lspconfig.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt index c609535f..ed53be08 100644 --- a/doc/lspconfig.txt +++ b/doc/lspconfig.txt @@ -517,7 +517,7 @@ attached to a given buffer. vim.keymap.set('n', 'rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', 'ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) - vim.keymap.set('n', 'f', vim.lsp.buf.format, bufopts) + vim.keymap.set('n', 'f', vim.lsp.buf.formatting, bufopts) end -- Use a loop to conveniently call 'setup' on multiple servers and -- cgit v1.3.1