local map = require("core.utils").smap return { { "mbbill/undotree", cmd = "UndotreeToggle" }, { "ThePrimeagen/harpoon", config = true, keys = { { "a", map("harpoon.mark", "add_file") }, { "1", map("harpoon.ui", "toggle_quick_menu") }, { "2", map("harpoon.ui", "nav_file", "1") }, { "3", map("harpoon.ui", "nav_file", "2") }, { "4", map("harpoon.ui", "nav_file", "3") }, { "5", map("harpoon.ui", "nav_file", "4") }, }, }, { "folke/trouble.nvim", config = true, cmd = { "Trouble", "TroubleToggle" }, }, { "stevearc/oil.nvim", lazy = false, keys = { { "e", map("oil", "open") } }, opts = { columns = { "icon" }, use_default_keymaps = false, delete_to_trash = true, keymaps = { ["?"] = "actions.show_help", ["."] = "actions.toggle_hidden", [""] = "actions.select", [""] = "actions.select", [""] = "actions.select_vsplit", [""] = "actions.select_split", [""] = "actions.preview", [""] = "actions.refresh", [""] = "actions.close", ["-"] = "actions.parent", ["_"] = "actions.open_cwd", [","] = "actions.parent", ["<"] = "actions.open_cwd", ["\\"] = "actions.cd", ["C-\\"] = "actions.tcd", ["`"] = "actions.cd", ["~"] = "actions.tcd", }, view_options = { show_hidden = true, is_always_hidden = function(name, _) if ({ [".git"] = {}, [".vscode"] = {}, ["dist"] = {}, ["node_modules"] = {}, ["__pycache__"] = {}, ["vendor"] = {}, ["target"] = {}, })[name] then return true end return false end, }, }, }, }