Skip to content

Commit 2f7863b

Browse files
committed
perf: avoid unnecessary plugin installation.
1 parent e5a5938 commit 2f7863b

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

lua/modules/plugins/tool.lua

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local tool = {}
2+
local settings = require("core.settings")
23

34
tool["tpope/vim-fugitive"] = {
45
lazy = true,
@@ -71,12 +72,15 @@ tool["gelguy/wilder.nvim"] = {
7172
config = require("tool.wilder"),
7273
dependencies = { "romgrk/fzy-lua-native" },
7374
}
75+
if settings.search_backend == "fzf" then
76+
-- require fzf binary installed
77+
tool["ibhagwan/fzf-lua"] = {
78+
lazy = true,
79+
event = "VeryLazy",
80+
config = require("tool.fzf-lua"),
81+
}
82+
end
7483

75-
tool["ibhagwan/fzf-lua"] = {
76-
lazy = true,
77-
event = "VeryLazy",
78-
config = require("tool.fzf-lua"),
79-
}
8084
----------------------------------------------------------------------
8185
-- Telescope Plugins --
8286
----------------------------------------------------------------------

0 commit comments

Comments
 (0)