nvim: replace vim.lsp.buf.formatting with .format

This commit is contained in:
tastytea 2022-10-02 22:53:09 +02:00
parent eb5874f7a1
commit 8a94e211bc
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -24,7 +24,7 @@ local on_attach = function(client, bufnr)
end, 'List workspace folders', bufnr)
map('n', '<Leader>lr', vim.lsp.buf.rename, 'Rename symbol', bufnr)
map('n', '<Leader>la', vim.lsp.buf.code_action, 'Code action', bufnr)
map('n', '<Leader>lf', vim.lsp.buf.formatting, 'Format buffer', bufnr)
map('n', '<Leader>lf', vim.lsp.buf.format, 'Format buffer', bufnr)
-- highlight symbol under cursor
if client.server_capabilities.documentHighlightProvider then