return { { "smart-splits.nvim", after = function(_) local map = vim.keymap.set map("n", "<M-h>", require("smart-splits").move_cursor_left) map("n", "<M-j>", require("smart-splits").move_cursor_down) map("n", "<M-k>", require("smart-splits").move_cursor_up) map("n", "<M-l>", require("smart-splits").move_cursor_right) map("n", "<M-Left>", require("smart-splits").move_cursor_left) map("n", "<M-Down>", require("smart-splits").move_cursor_down) map("n", "<M-Up>", require("smart-splits").move_cursor_up) map("n", "<M-Right>", require("smart-splits").move_cursor_right) map("n", "<M-S-h>", require("smart-splits").resize_left) map("n", "<M-S-j>", require("smart-splits").resize_down) map("n", "<M-S-k>", require("smart-splits").resize_up) map("n", "<M-S-l>", require("smart-splits").resize_right) map("n", "<M-S-Left>", require("smart-splits").resize_left) map("n", "<M-S-Down>", require("smart-splits").resize_down) map("n", "<M-S-Up>", require("smart-splits").resize_up) map("n", "<M-S-Right>", require("smart-splits").resize_right) end, }, { "which-key.nvim", event = "DeferredUIEnter", after = function(_) require("which-key").setup() require("which-key").add({ { "<leader>s", group = "search" }, { mode = { "n", "v" }, { "<leader>g", group = "git" }, { "<leader>gh", group = "hunk" }, { "<leader>S", group = "surround" }, }, }) end, }, }