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