From 8a94e211bc181931afb1a814572bbdc234d7d4c3 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 2 Oct 2022 22:53:09 +0200 Subject: [PATCH] nvim: replace vim.lsp.buf.formatting with .format --- .config/nvim/lua/my/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/my/lsp.lua b/.config/nvim/lua/my/lsp.lua index c5b9a15..8d0d1fd 100644 --- a/.config/nvim/lua/my/lsp.lua +++ b/.config/nvim/lua/my/lsp.lua @@ -24,7 +24,7 @@ local on_attach = function(client, bufnr) end, 'List workspace folders', bufnr) map('n', 'lr', vim.lsp.buf.rename, 'Rename symbol', bufnr) map('n', 'la', vim.lsp.buf.code_action, 'Code action', bufnr) - map('n', 'lf', vim.lsp.buf.formatting, 'Format buffer', bufnr) + map('n', 'lf', vim.lsp.buf.format, 'Format buffer', bufnr) -- highlight symbol under cursor if client.server_capabilities.documentHighlightProvider then