mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 23:44:55 +01:00
fix: disable workspace event callback
its not available anymore
This commit is contained in:
parent
c52c26e46b
commit
4c9879a4e7
1 changed files with 12 additions and 12 deletions
|
@ -89,18 +89,18 @@ local function join(workspace)
|
||||||
register_cursor_handler(ws)
|
register_cursor_handler(ws)
|
||||||
|
|
||||||
-- TODO this is temporary and ad-hoc
|
-- TODO this is temporary and ad-hoc
|
||||||
ws:callback(function (event)
|
-- ws:callback(function (event)
|
||||||
if event.type == "leave" then
|
-- if event.type == "leave" then
|
||||||
if buffers.users[event.value] ~= nil then
|
-- if buffers.users[event.value] ~= nil then
|
||||||
vim.schedule(function ()
|
-- vim.schedule(function ()
|
||||||
vim.api.nvim_buf_clear_namespace(buffers.users[event.value], user_hl[event.value].ns, 0, -1)
|
-- vim.api.nvim_buf_clear_namespace(buffers.users[event.value], user_hl[event.value].ns, 0, -1)
|
||||||
buffers.users[event.value] = nil
|
-- buffers.users[event.value] = nil
|
||||||
user_hl[event.value] = nil
|
-- user_hl[event.value] = nil
|
||||||
end)
|
-- end)
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
vim.schedule(function() window.update() end)
|
-- vim.schedule(function() window.update() end)
|
||||||
end)
|
-- end)
|
||||||
|
|
||||||
session.workspace = ws
|
session.workspace = ws
|
||||||
window.update()
|
window.update()
|
||||||
|
|
Loading…
Reference in a new issue