fix: setting global client

This commit is contained in:
əlemi 2024-09-17 16:36:51 +02:00
parent c4c3d0ced9
commit 45231e3eb8
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -1,4 +1,3 @@
local session = require("codemp.session")
local workspace = require("codemp.workspace")
local function connect()
@ -9,7 +8,7 @@ local function connect()
CODEMP.config.password = vim.g.codemp_password or vim.fn.input("password > ", "")
end
CODEMP.native.connect(CODEMP.config):and_then(function (client)
session.client = client
require('codemp.session').client = client
require('codemp.window').update()
workspace.list()
end)