From 82f82c0ece7c1a2dd7ab7c0b2c8c762ac2a8a2ab Mon Sep 17 00:00:00 2001 From: lakako <46197434+lakako@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:11:09 +0800 Subject: [PATCH] Update telescope.lua --- lua/lazyvim/plugins/extras/editor/telescope.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/editor/telescope.lua b/lua/lazyvim/plugins/extras/editor/telescope.lua index 11cfef1b..9d2633c6 100644 --- a/lua/lazyvim/plugins/extras/editor/telescope.lua +++ b/lua/lazyvim/plugins/extras/editor/telescope.lua @@ -4,6 +4,7 @@ if lazyvim_docs then vim.g.lazyvim_picker = "telescope" end +local make_cmd = vim.loop.os_uname().sysname == "Linux" and "make" or "gmake" local have_make = vim.fn.executable("make") == 1 local have_cmake = vim.fn.executable("cmake") == 1 @@ -63,7 +64,7 @@ return { dependencies = { { "nvim-telescope/telescope-fzf-native.nvim", - build = have_make and "make" + build = have_make and make_cmd or "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build", enabled = have_make or have_cmake, config = function(plugin)