diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-01-03 21:03:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 21:03:16 -0500 |
commit | 207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb (patch) | |
tree | f85b18ba46b7cce6984a3d51b609e4d4c99cf696 | |
parent | efe6485aca62c13045ef269ce0c218bce4a7e864 (diff) | |
download | rneovim-207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb.tar.gz rneovim-207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb.tar.bz2 rneovim-207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb.zip |
fix(lsp): explicitly pass bufnr in didSave handler (#16906)
Addresses a regression introduced by the stricter type checking
in lua api functions from https://github.com/neovim/neovim/pull/16745
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 8bb9960a1b..cfbabb12a6 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1131,7 +1131,7 @@ function lsp._text_document_did_save_handler(bufnr) if client.resolved_capabilities.text_document_save then local included_text if client.resolved_capabilities.text_document_save_include_text then - included_text = text() + included_text = text(bufnr) end client.notify('textDocument/didSave', { textDocument = { |