fix: dont suggest user+pwd anymore

This commit is contained in:
əlemi 2024-08-22 03:41:37 +02:00
parent 24c5e2cbc1
commit 0da26b0639
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -20,8 +20,8 @@ end
local base_actions = {
connect = function(host)
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 password = vim.g.codemp_password or vim.fn.input("password > ", "lmaodefaultpassword")
local user = vim.g.codemp_username or vim.fn.input("username > ", "")
local password = vim.g.codemp_password or vim.fn.input("password > ", "")
state.client = native.connect(host, user, password):await()
print(" ++ connected to " .. host .. " as " .. user)
end,