From db39f5fe1b920fee493a76fb1f717d7c1c73ab6d Mon Sep 17 00:00:00 2001 From: WireWhiz <43615314+WireWhiz@users.noreply.github.com> Date: Sun, 22 Jun 2025 04:36:59 -0400 Subject: [PATCH] feat: make LazyVim config auto handle cross-platform (#2284) --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 703daa0..1d1884a 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,15 @@ For building binary if you wish to build from source, then `cargo` is required. { "yetone/avante.nvim", -- if you want to build from source then do `make BUILD_FROM_SOURCE=true` - build = "make", -- ⚠️ must add this line! ! ! - -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows + -- ⚠️ must add this setting! ! ! + build = function() + -- conditionally use the correct build system for the current OS + if vim.fn.has("win32") == 1 then + return "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" + else + return "make" + end + end, event = "VeryLazy", version = false, -- Never set this value to "*"! Never! ---@module 'avante'