mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-27 15:44:52 +01:00
chore: codemp.dev -> code.mp
This commit is contained in:
parent
6a0ba39685
commit
368dd727c5
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
[![codemp](https://codemp.dev/static/banner.png)](https://codemp.dev)
|
||||
[![codemp](https://code.mp/static/banner.png)](https://code.mp)
|
||||
|
||||
> `codemp` is a **collaborative** text editing solution to work remotely.
|
||||
|
||||
|
|
|
@ -20,6 +20,6 @@ local plugin_dir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h
|
|||
-- vim.fn.system("curl -o " .. path .. 'native' .. ext .. "https://codemp.alemi.dev/lib/lua/latest")
|
||||
-- end
|
||||
local native_path = plugin_dir .. "/lua/codemp/native.so" -- TODO get extension based on platform
|
||||
local download_url_native = "https://codemp.dev/releases/lua/codemp_native-linux.so" -- TODO get url based on platform
|
||||
local download_url_native = "https://code.mp/releases/lua/codemp_native-linux.so" -- TODO get url based on platform
|
||||
print("downloading codemp native lua extension...")
|
||||
vim.system({"curl", "-s", "-o", native_path, download_url_native }):wait() -- TODO can we run this asynchronously?
|
||||
|
|
|
@ -4,7 +4,7 @@ local session = require("codemp.session")
|
|||
local workspace = require("codemp.workspace")
|
||||
|
||||
local function connect(host, username, password)
|
||||
if host == nil then host = 'http://codemp.dev:50053' end
|
||||
if host == nil then host = 'http://code.mp:50053' end
|
||||
if username == nil then username = vim.g.codemp_username or vim.fn.input("username > ", "") end
|
||||
if password == nil then password = vim.g.codemp_password or vim.fn.input("password > ", "") end
|
||||
session.client = native.connect(host, username, password):await()
|
||||
|
|
Loading…
Reference in a new issue