chore: codemp.dev -> code.mp

This commit is contained in:
əlemi 2024-09-07 22:12:32 +02:00
parent 6a0ba39685
commit 368dd727c5
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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?

View file

@ -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()