mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
fix: dont suggest user+pwd anymore
This commit is contained in:
parent
24c5e2cbc1
commit
0da26b0639
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@ end
|
||||||
local base_actions = {
|
local base_actions = {
|
||||||
connect = function(host)
|
connect = function(host)
|
||||||
if host == nil then host = 'http://codemp.alemi.dev:50053' end
|
if host == nil then host = 'http://codemp.alemi.dev:50053' end
|
||||||
local user = vim.g.codemp_username or vim.fn.input("username > ", "user-" .. vim.fn.rand() % 1024)
|
local user = vim.g.codemp_username or vim.fn.input("username > ", "")
|
||||||
local password = vim.g.codemp_password or vim.fn.input("password > ", "lmaodefaultpassword")
|
local password = vim.g.codemp_password or vim.fn.input("password > ", "")
|
||||||
state.client = native.connect(host, user, password):await()
|
state.client = native.connect(host, user, password):await()
|
||||||
print(" ++ connected to " .. host .. " as " .. user)
|
print(" ++ connected to " .. host .. " as " .. user)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue