nvim: replace vim.lsp.buf.formatting with .format
This commit is contained in:
parent
eb5874f7a1
commit
8a94e211bc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user