refactor: format with stylua (#21821)

This commit is contained in:
dundargoc 2023-01-15 16:00:23 +01:00 committed by GitHub
parent 3269902a13
commit c752c85363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1557,15 +1557,21 @@ end
--- Notify all attached clients that a buffer has changed. --- Notify all attached clients that a buffer has changed.
local text_document_did_change_handler local text_document_did_change_handler
do do
text_document_did_change_handler = text_document_did_change_handler = function(
function(_, bufnr, changedtick, firstline, lastline, new_lastline) _,
-- Detach (nvim_buf_attach) via returning True to on_lines if no clients are attached bufnr,
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then changedtick,
return true firstline,
end lastline,
util.buf_versions[bufnr] = changedtick new_lastline
changetracking.send_changes(bufnr, firstline, lastline, new_lastline) )
-- Detach (nvim_buf_attach) via returning True to on_lines if no clients are attached
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then
return true
end end
util.buf_versions[bufnr] = changedtick
changetracking.send_changes(bufnr, firstline, lastline, new_lastline)
end
end end
---@private ---@private