mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor: format with stylua (#21821)
This commit is contained in:
parent
3269902a13
commit
c752c85363
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user