From 368dd727c595d7a0200cea078614ce47808628dd Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 7 Sep 2024 22:12:32 +0200 Subject: [PATCH] chore: codemp.dev -> code.mp --- README.md | 2 +- build.lua | 2 +- lua/codemp/client.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ba276a..34c4395 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/build.lua b/build.lua index 0883206..29ae015 100644 --- a/build.lua +++ b/build.lua @@ -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? diff --git a/lua/codemp/client.lua b/lua/codemp/client.lua index b3d6f98..37b4794 100644 --- a/lua/codemp/client.lua +++ b/lua/codemp/client.lua @@ -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()