local function insert_current_date() local date = vim.fn.system('date "+%a %d %b"'):gsub('\n', '') vim.api.nvim_put({date}, 'c', false, true) end return { "folke/which-key.nvim", event = "VeryLazy", opts = {}, keys = { { "d", "Neotree", desc = "Open Neotree" }, { "f", ":Telescope find_files", desc = "Search for files" }, { "s", ":Telescope live_grep", desc = "Search file content (requires ripgrep)" }, { ">", ":lua vim.diagnostic.goto_next()", desc = "Jump to next issue" }, { "<", ":lua vim.diagnostic.goto_prev()", desc = "Jump to prev issue" }, { "t", insert_current_date, desc = "Enter current date" }, }, }