Something went wrong. Try again.
Neovim config
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104local fn = require("plugin.telescope.function")local tb = fn.pick("telescope.builtin")
local key = require("utils.map")local opts = key.new_opts
local M = { prefix = "<leader>q",}
function M:setup() local p = self.prefix key.nmap({ --stylua: ignore start { p .. "d", function() fn.get_dwots() end }, { p .. "h", function() tb.help_tags() end }, { p .. "n", function() fn.get_nvim_conf() end }, { p .. "o", function() tb.oldfiles(_, { cwd_only = true }) end }, { p .. "p", function() tb.find_files(_, { no_ignore = true }) end }, { p .. "s", function() fn.get_relative_file() end }, { p .. "u", function() tb.resume() end }, { p .. "v", function() tb.git_files() end }, --stylua: ignore end { p .. ";", function() tb.git_status(_, { git_icons = { added = "+", changed = "~", copied = ">", deleted = "x", renamed = "^", unmerged = "<->", untracked = "?", }, }) end, },
{ p .. "b", function() local listed = #vim.fn.getbufinfo({ buflisted = true }) if listed == 1 then vim.notify("No other listed buffers found", vim.log.levels.INFO) return end tb.buffers(_, { ignore_current_buffer = true, attach_mappings = function(prompt_bufnr, map) map("i", "<C-d>", function() require("telescope.actions").delete_buffer(prompt_bufnr) end) return true end, }) end, opts("Telescope: Listed buffers"), },
{ p .. "g", function() tb.live_grep(false, { layout_strategy = "horizontal", path_display = { shorten = 3 }, preview = true, }) end, },
{ p .. "w", function() local opts = {} require("plugin.telescope.extra.set_bg"):pick(true, fn.use_theme(opts)) end, opts("Telescope: Set wallpaper"), },
{ p .. "l", function() require("plugin.telescope.extra.pick_githist").pick_files() end, opts("Telescope: Search git log"), },
{ p .. "m", function () local is_avail, harpoon = pcall(require, "harpoon") if not is_avail then return end
local opts = {} require("plugin.telescope.extra.harpoon").pick_file(harpoon:list(), fn.use_theme(opts)) end }, })end
return M