fix(picker): actually disable telescope

Telescope ships in NvChad's own plugin set, so dropping it from neogit's
dependencies never removed it — it kept reinstalling. Disable it the same
way nvim-tree is disabled, and repoint the ten NvChad mappings that drove
it: five are already covered by fzf.lua bindings and are dropped, the
other five move to fzf-lua.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
naps62
2026-08-17 13:00:35 +00:00
co-authored by Claude Opus 5
parent a23e15d9da
commit 933ffe7cf5
2 changed files with 36 additions and 0 deletions
+29
View File
@@ -8,6 +8,35 @@ vim.keymap.del("n", "<C-n>")
vim.keymap.del("n", "<leader>rn")
map("n", "<leader>rn", vim.lsp.buf.rename, { desc = "LSP Rename" })
-- NvChad binds these to telescope, which is not installed (fzf-lua is the picker).
-- Drop them all, then restore the ones fzf.lua does not already cover.
for _, lhs in ipairs {
"<leader>ff",
"<leader>fw",
"<leader>fb",
"<leader>fh",
"<leader>fo",
"<leader>fz",
"<leader>ma",
"<leader>cm",
"<leader>gt",
"<leader>pt",
} do
pcall(vim.keymap.del, "n", lhs)
end
local function fzf(picker)
return function()
require("fzf-lua")[picker]()
end
end
map("n", "<leader>fo", fzf "oldfiles", { desc = "Old files" })
map("n", "<leader>fh", fzf "helptags", { desc = "Help tags" })
map("n", "<leader>fz", fzf "blines", { desc = "Find in current buffer" })
map("n", "<leader>ma", fzf "marks", { desc = "Marks" })
map("n", "<leader>cm", fzf "git_commits", { desc = "Git commits" })
map("n", ";", ":", { desc = "CMD enter command mode" })
-- close current buffer