From ff316f91101fcc328d1e7879ab1bf26a055c2745 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 3 Sep 2024 22:43:50 +0800 Subject: [PATCH] fix(installation): asset name is incorrect in linux (#491) --- build.sh | 2 +- lua/avante/utils/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index fe08956..0600c4a 100644 --- a/build.sh +++ b/build.sh @@ -13,7 +13,7 @@ TARGET_DIR="${SCRIPT_DIR}/build" # Get the artifact download URL based on the platform and Lua version case "$(uname -s)" in Linux*) - PLATFORM="linux" + PLATFORM="ubuntu" ;; Darwin*) PLATFORM="macos" diff --git a/lua/avante/utils/init.lua b/lua/avante/utils/init.lua index 3c7a8f5..f4fd3e0 100644 --- a/lua/avante/utils/init.lua +++ b/lua/avante/utils/init.lua @@ -132,7 +132,7 @@ M.safe_keymap_set = function(mode, lhs, rhs, opts) ---@cast modes -string ---@param m string - modes = vim.tbl_filter(function(m) return not (Keys.have and Keys:have(lhs, m)) end, modes) + modes = vim.tbl_filter(function(m) return not (Keys and Keys.have and Keys:have(lhs, m)) end, modes) -- don't create keymap if a lazy keys handler exists if #modes > 0 then