nvim/key/map: fix Lsp.FormatDocument action

neovim moved buf.formatting to buf.format, a while back, leaving this as
effectively setting `action = null`, which throws warnings on start; so
we fix that.
This commit is contained in:
Paul Stemmet 2023-06-04 21:25:56 +00:00
parent 5f07c09d46
commit c9d7e5ca50
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ M.Buffer.Lsp.N {
-- ##################
--
RenameSymbol = B { 'Rename <cword> symbol' , key = 'rn' , action = vim.lsp.buf.rename , } ,
FormatDocument = B { 'Format current document' , key = 'F' , action = vim.lsp.buf.formatting , } ,
FormatDocument = B { 'Format current document' , key = 'F' , action = vim.lsp.buf.format , } ,
ShowSignature = B { 'Display function signature help of <cword> symbol' , key = 'K' , action = vim.lsp.buf.signature_help , } ,
CodeAction = B { 'Request code actions for <cword>' , key = '.' , action = vim.lsp.buf.code_action , } ,