aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-09-01 20:50:08 -0700
committerGitHub <noreply@github.com>2020-09-01 20:50:08 -0700
commit948e625e1ecbdb1d4771e1481b3d6534b21250c9 (patch)
tree622ca61ba645ae0be4346efa4045a2934097cdb4 /runtime/lua/vim/lsp.lua
parente86b15b25c70070faf224d97073b6e5c4b032a91 (diff)
parent3b1db74963e30ad73b364746cf589cefa778b940 (diff)
downloadrneovim-948e625e1ecbdb1d4771e1481b3d6534b21250c9.tar.gz
rneovim-948e625e1ecbdb1d4771e1481b3d6534b21250c9.tar.bz2
rneovim-948e625e1ecbdb1d4771e1481b3d6534b21250c9.zip
Merge #12468 'lsp: logging'
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r--runtime/lua/vim/lsp.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index 121de1b0ae..585528dd5a 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -761,8 +761,12 @@ do
text_document_did_change_handler = function(_, bufnr, changedtick,
firstline, lastline, new_lastline, old_byte_size, old_utf32_size,
old_utf16_size)
- local _ = log.debug() and log.debug("on_lines", bufnr, changedtick, firstline,
- lastline, new_lastline, old_byte_size, old_utf32_size, old_utf16_size, nvim_buf_get_lines(bufnr, firstline, new_lastline, true))
+
+ local _ = log.debug() and log.debug(
+ string.format("on_lines bufnr: %s, changedtick: %s, firstline: %s, lastline: %s, new_lastline: %s, old_byte_size: %s, old_utf32_size: %s, old_utf16_size: %s",
+ bufnr, changedtick, firstline, lastline, new_lastline, old_byte_size, old_utf32_size, old_utf16_size),
+ nvim_buf_get_lines(bufnr, firstline, new_lastline, true)
+ )
-- Don't do anything if there are no clients attached.
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then