fix: put user.name is buf mappings

This commit is contained in:
əlemi 2024-10-27 11:51:50 +01:00
parent 04ca78ac16
commit 3ba6c30a48
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -182,7 +182,7 @@ local function join(workspace)
CODEMP.workspace = ws CODEMP.workspace = ws
for _, user in pairs(CODEMP.workspace:user_list()) do for _, user in pairs(CODEMP.workspace:user_list()) do
buffers.users[user.name] = "" buffers.users[user.name] = ""
user_hl[user] = { user_hl[user.name] = {
ns = vim.api.nvim_create_namespace("codemp-cursor-" .. user.name), ns = vim.api.nvim_create_namespace("codemp-cursor-" .. user.name),
hi = utils.color(user.name), hi = utils.color(user.name),
pos = { 0, 0 }, pos = { 0, 0 },