Skip to content

Commit 22feaf0

Browse files
authoredMar 21, 2025··
fix(install): install 'fzf' with apt (#723)
1 parent 96fd9f3 commit 22feaf0

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed
 

Diff for: ‎install

+1-8
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,6 @@ apt_install_lazygit() {
9090
go install github.com/jesseduffield/lazygit@latest
9191
}
9292

93-
apt_install_fzf() {
94-
git clone --depth=1 https://github.com/junegunn/fzf
95-
bash ./fzf/install --bin
96-
sudo mv ./fzf/bin/fzf /usr/local/bin/fzf
97-
rm -rf ./fzf
98-
}
99-
10093
apt_deps() {
10194
info "apt install dependencies"
10295
sudo locale-gen en_US
@@ -138,7 +131,7 @@ apt_deps() {
138131

139132
# dev tools
140133
install "apt_install_lazygit" "lazygit"
141-
install "apt_install_fzf" "fzf"
134+
install "sudo apt-get -qq -y install fzf" "fzf"
142135
}
143136

144137
# }

Diff for: ‎lua/configs/stevearc/conform-nvim/formatters_by_ft_sample.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ local formatters_by_ft = {
2222
-- typescriptreact = { "prettier" },
2323
-- xhtml = { "prettier" },
2424
-- xml = { "prettier" },
25-
-- rust = { "rustfmt" },
25+
-- rust = { inherit = false, command = "cargo", args = { "fmt" } }, -- use 'cargo fmt' instead of 'rustfmt'
2626
}
2727

2828
return formatters_by_ft

Diff for: ‎lua/plugins/init.lua

+8
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ local M = {
140140
-- ---- SEARCH ----
141141

142142
-- Fuzzy search
143+
{
144+
"junegunn/fzf",
145+
event = { "CmdlineEnter" },
146+
build = function()
147+
vim.fn["fzf#install"]()
148+
end,
149+
},
143150
{
144151
"linrongbin16/fzfx.nvim",
145152
event = { CmdlineEnter },
@@ -151,6 +158,7 @@ local M = {
151158
"FzfxLspIncomingCalls",
152159
"FzfxLspOutgoingCalls",
153160
},
161+
dependencies = { "junegunn/fzf" },
154162
config = lua_config("linrongbin16/fzfx.nvim"),
155163
keys = lua_keys("linrongbin16/fzfx.nvim"),
156164
},

0 commit comments

Comments
 (0)
Please sign in to comment.