feat(telescope-fzf-native): added support for building with cmake. Fixes #2132

This commit is contained in:
Folke Lemaitre 2024-03-22 10:00:22 +01:00
parent 8d31bf230c
commit 1c13a5c10b
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -124,8 +124,9 @@ return {
dependencies = { dependencies = {
{ {
"nvim-telescope/telescope-fzf-native.nvim", "nvim-telescope/telescope-fzf-native.nvim",
build = "make", build = vim.fn.executable("make") == 1 and "make"
enabled = vim.fn.executable("make") == 1, or "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build",
enabled = vim.fn.executable("make") == 1 or vim.fn.executable("cmake") == 1,
config = function() config = function()
LazyVim.on_load("telescope.nvim", function() LazyVim.on_load("telescope.nvim", function()
require("telescope").load_extension("fzf") require("telescope").load_extension("fzf")