mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-23 22:04:52 +01:00
feat: allow setting username+pwd in config
This commit is contained in:
parent
1de55250ab
commit
b505033bc4
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ end
|
|||
local base_actions = {
|
||||
connect = function(host)
|
||||
if host == nil then host = 'http://codemp.alemi.dev:50053' end
|
||||
local user = vim.fn.input("username > ", "user-" .. vim.fn.rand() % 1024)
|
||||
local password = vim.fn.input("password > ", "lmaodefaultpassword")
|
||||
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")
|
||||
state.client = native.connect(host, user, password)
|
||||
print(" ++ connected to " .. host .. " as " .. user)
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue