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