From cd113d4df2d5c0d3500ae45817ce32b79af431ca Mon Sep 17 00:00:00 2001 From: halkn Date: Sat, 6 Feb 2021 10:35:24 +0900 Subject: readme: fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2873e86..1f1a24b7 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ local on_attach = function(client, bufnr) if client.resolved_capabilities.document_formatting then buf_set_keymap("n", "f", "lua vim.lsp.buf.formatting()", opts) elseif client.resolved_capabilities.document_range_formatting then - buf_set_keymap("n", "f", "lua vim.lsp.buf.formatting()", opts) + buf_set_keymap("n", "f", "lua vim.lsp.buf.range_formatting()", opts) end -- Set autocommands conditional on server_capabilities -- cgit v1.2.3-70-g09d2