mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
fix: setting global client
This commit is contained in:
parent
c4c3d0ced9
commit
45231e3eb8
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
local session = require("codemp.session")
|
|
||||||
local workspace = require("codemp.workspace")
|
local workspace = require("codemp.workspace")
|
||||||
|
|
||||||
local function connect()
|
local function connect()
|
||||||
|
@ -9,7 +8,7 @@ local function connect()
|
||||||
CODEMP.config.password = vim.g.codemp_password or vim.fn.input("password > ", "")
|
CODEMP.config.password = vim.g.codemp_password or vim.fn.input("password > ", "")
|
||||||
end
|
end
|
||||||
CODEMP.native.connect(CODEMP.config):and_then(function (client)
|
CODEMP.native.connect(CODEMP.config):and_then(function (client)
|
||||||
session.client = client
|
require('codemp.session').client = client
|
||||||
require('codemp.window').update()
|
require('codemp.window').update()
|
||||||
workspace.list()
|
workspace.list()
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue