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 = {
{
"nvim-telescope/telescope-fzf-native.nvim",
build = "make",
enabled = vim.fn.executable("make") == 1,
build = vim.fn.executable("make") == 1 and "make"
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()
LazyVim.on_load("telescope.nvim", function()
require("telescope").load_extension("fzf")