feat: make LazyVim config auto handle cross-platform (#2284)
This commit is contained in:
11
README.md
11
README.md
@@ -74,8 +74,15 @@ For building binary if you wish to build from source, then `cargo` is required.
|
|||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
"yetone/avante.nvim",
|
||||||
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||||
build = "make", -- ⚠️ must add this line! ! !
|
-- ⚠️ must add this setting! ! !
|
||||||
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
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",
|
event = "VeryLazy",
|
||||||
version = false, -- Never set this value to "*"! Never!
|
version = false, -- Never set this value to "*"! Never!
|
||||||
---@module 'avante'
|
---@module 'avante'
|
||||||
|
|||||||
Reference in New Issue
Block a user