- Supprimés : fish, qtile, X, vim, sway, neomutt (+ package systemd vide) - Nouveau package hyprland : waybar, rofi, mako, gammastep, rofi-pass, systemd (mail+kanata+mpd+voxtype), script rofi - Nouveau package aerc : config aerc + infra mail (msmtp, khard, vdirsyncer) migrée depuis neomutt - Nettoyage .gitignore : suppression entrées neomutt/vim, ajout patterns moc/mpd/vifm manquants, vdirsyncer/status pour aerc - Mise à jour des configs trackées modifiées (nvim, zsh, tmux, git, newsboat) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
71 lines
2.4 KiB
Lua
71 lines
2.4 KiB
Lua
return {
|
|
"nvim-telescope/telescope.nvim",
|
|
branch = "0.1.x",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
{
|
|
"nvim-telescope/telescope-fzf-native.nvim",
|
|
build = "make",
|
|
},
|
|
},
|
|
opts = {
|
|
defaults = {
|
|
file_ignore_patterns = { "**/*.pdf" },
|
|
layout_strategy = "horizontal",
|
|
layout_config = {
|
|
horizontal = {
|
|
prompt_position = "top",
|
|
preview_width = 0.55,
|
|
},
|
|
width = 0.87,
|
|
height = 0.80,
|
|
preview_cutoff = 120,
|
|
},
|
|
sorting_strategy = "ascending",
|
|
borderchars = { "█", "█", "█", "█", "█", "█", "█", "█" },
|
|
prompt_prefix = " 🔍 ",
|
|
selection_caret = " ➜ ",
|
|
entry_prefix = " ",
|
|
winblend = 0,
|
|
results_title = "",
|
|
prompt_title = "",
|
|
preview_title = "",
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
local telescope = require("telescope")
|
|
local actions = require("telescope.actions")
|
|
opts.defaults.mappings = {
|
|
i = { ["<C-d>"] = actions.delete_buffer },
|
|
n = { ["<C-d>"] = actions.delete_buffer },
|
|
}
|
|
telescope.setup(opts)
|
|
telescope.load_extension("fzf")
|
|
|
|
local bg = vim.api.nvim_get_hl(0, { name = "CursorColumn" }).bg
|
|
if type(bg) == "number" then
|
|
bg = string.format("#%06x", bg)
|
|
end
|
|
|
|
vim.api.nvim_set_hl(0, "TelescopeNormal", { bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopePromptNormal", { bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopeResultsNormal", { bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopePreviewNormal", { bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopePromptBorder", { fg = bg, bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopeResultsBorder", { fg = bg, bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopePreviewBorder", { fg = bg, bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopePromptTitle", { fg = bg, bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopeResultsTitle", { fg = bg, bg = bg })
|
|
vim.api.nvim_set_hl(0, "TelescopePreviewTitle", { fg = bg, bg = bg })
|
|
end,
|
|
keys = {
|
|
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" },
|
|
{ "<leader>fe", "<cmd>Telescope git_files<cr>", desc = "Find file respecting .gitignore" },
|
|
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Grep file in file" },
|
|
{ "<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Search through buffers" },
|
|
{ "<leader>ft", "<cmd>Telescope tags<cr>", desc = "Search through tags" },
|
|
{ "<leader>fm", "<cmd>Telescope marks<cr>", desc = "Search through marks" },
|
|
{ "<leader>fs", "<cmd>Telescope search_history<cr>", desc = "Search through search" },
|
|
},
|
|
}
|