aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurtis <klnusbaum@users.noreply.github.com>2022-06-03 11:09:46 -0400
committerGitHub <noreply@github.com>2022-06-03 08:09:46 -0700
commit134a291fecc5c1fa5d01e398d2d6ef03b3dc5149 (patch)
tree2886d9e4fa5d93f0dfbf65c339d8ec816a7ef1ac
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-134a291fecc5c1fa5d01e398d2d6ef03b3dc5149.tar
nvim-lspconfig-134a291fecc5c1fa5d01e398d2d6ef03b3dc5149.tar.gz
nvim-lspconfig-134a291fecc5c1fa5d01e398d2d6ef03b3dc5149.tar.bz2
nvim-lspconfig-134a291fecc5c1fa5d01e398d2d6ef03b3dc5149.tar.lz
nvim-lspconfig-134a291fecc5c1fa5d01e398d2d6ef03b3dc5149.tar.xz
nvim-lspconfig-134a291fecc5c1fa5d01e398d2d6ef03b3dc5149.tar.zst
nvim-lspconfig-134a291fecc5c1fa5d01e398d2d6ef03b3dc5149.zip
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 <kcommiter@gmail.com>
-rw-r--r--README.md2
-rw-r--r--doc/lspconfig.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 06aee634..2fe5e57c 100644
--- a/README.md
+++ b/README.md
@@ -99,7 +99,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.format, bufopts)
+ vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts)
end
-- Use a loop to conveniently call 'setup' on multiple servers and
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', '<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.format, bufopts)
+ vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts)
end
-- Use a loop to conveniently call 'setup' on multiple servers and