---@type LazyPluginSpec[] return { { "folke/which-key.nvim", config = function() local wk = require("which-key") wk.setup({ key_labels = { [""] = "␣", [""] = "␣", [""] = "󰌑 ", [""] = "󰌒 ", [""] = "⎋ ", }, window = { border = vim.g.bc.style, margin = { 0, 0, 0, 0 }, }, }) -- Telescope wk.register({ ["f"] = { name = "+Telescope", b = { "Telescope file_browser grouped=true", "File browser" }, d = { "Telescope find_files", "Find file" }, g = { "Telescope live_grep", "Live grep" }, h = { "Telescope help_tags", "Help tags" }, n = { "Telescope notify", "Show notifications" }, p = { "Telescope project", "Project" }, r = { "Telescope asynctasks all", "Run asynctasks" }, s = { function() local confpath = vim.fn.resolve(vim.fn.stdpath("config")) require("telescope.builtin").find_files({ cwd = confpath }) end, "Find in config", }, }, }) -- clipboard wk.register({ [""] = { y = { '"+y', "Copy to clipboard" }, p = { '"+p', "Paste from clipboard" }, db = { "DBUIToggle", "Toggle DBUI" }, gd = { "Gvdiff!", "Git diff" }, ng = { "Neogit", "Neogit" }, }, }, { mode = { "n", "v" } }) end, }, }