mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-23 22:04:52 +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)
|
||||
|
||||
-- TODO this is temporary and ad-hoc
|
||||
ws:callback(function (event)
|
||||
if event.type == "leave" then
|
||||
if buffers.users[event.value] ~= nil then
|
||||
vim.schedule(function ()
|
||||
vim.api.nvim_buf_clear_namespace(buffers.users[event.value], user_hl[event.value].ns, 0, -1)
|
||||
buffers.users[event.value] = nil
|
||||
user_hl[event.value] = nil
|
||||
end)
|
||||
end
|
||||
end
|
||||
vim.schedule(function() window.update() end)
|
||||
end)
|
||||
-- ws:callback(function (event)
|
||||
-- if event.type == "leave" then
|
||||
-- if buffers.users[event.value] ~= nil then
|
||||
-- vim.schedule(function ()
|
||||
-- vim.api.nvim_buf_clear_namespace(buffers.users[event.value], user_hl[event.value].ns, 0, -1)
|
||||
-- buffers.users[event.value] = nil
|
||||
-- user_hl[event.value] = nil
|
||||
-- end)
|
||||
-- end
|
||||
-- end
|
||||
-- vim.schedule(function() window.update() end)
|
||||
-- end)
|
||||
|
||||
session.workspace = ws
|
||||
window.update()
|
||||
|
|
Loading…
Reference in a new issue