local map = vim.keymap.set map("n", "", "BufferLineCycleNext") map("n", "", "BufferLineCyclePrev") map({"n", "v"}, "ap", require("actions-preview").code_actions) map("n", ";", ":", { desc = "CMD enter command mode" }) -- Move selected text up map("v", "", ":m '<-2gv=gv", { desc = "Move selected text up" }) map("v", "", ":m '>+1gv=gv", { desc = "Move selected text down" }) -- Alt + Arrow Key to change buffer -- map("n", "", "h", { desc = "Move to left split" }) -- map("n", "", "j", { desc = "Move to bottom split" }) -- map("n", "", "k", { desc = "Move to top split" }) -- map("n", "", "l", { desc = "Move to right split" }) map("n", "", "lua require('tmux').move_left()", { desc = "Move to left split" }) map("n", "", "lua require('tmux').move_bottom()", { desc = "Move to bottom split" }) map("n", "", "lua require('tmux').move_top()", { desc = "Move to top split" }) map("n", "", "lua require('tmux').move_right()", { desc = "Move to right split" }) map("n", "", "lua require('tmux').resize_left()", { desc = "Move to left split" }) map("n", "", "lua require('tmux').resize_bottom()", { desc = "Move to bottom split" }) map("n", "", "lua require('tmux').resize_top()", { desc = "Move to top split" }) map("n", "", "lua require('tmux').resize_right()", { desc = "Move to right split" }) -- Copilot Chat buffer map("n", "", vim.cmd.CopilotChatToggle) map("i", "", vim.cmd.CopilotChatToggle) map("v", "", vim.cmd.CopilotChatToggle) -- Explorer and Undotree map('n', 'e', function() Snacks.explorer() end) map('n', 'u', require('undotree').toggle, { noremap = true, silent = true }) -- Telescope grep map("n", "g", require("telescope.builtin").live_grep, {desc = "Telescope grep" }) map("n", "f", require("telescope.builtin").find_files, {desc = "Telescope find files" }) map("n", "", ":bdelete") -- map("n", "", ":BufferRestore") map("n", "", "ggVG", { noremap = true, silent = true }) map("n", "J", "mzJ`z") map("n", "", "zz") map("n", "", "zz") map("n", "n", "nzzzv") map("n", "N", "Nzzzv") map("n", "zig", "LspRestart") -- greatest remap ever map("x", "p", [["_dP]]) -- next greatest remap ever : asbjornHaland map({"n", "v"}, "y", [["+y]]) map("n", "Y", [["+Y]]) map({"n", "v"}, "d", "\"_d") -- This is going to get me cancelled map("i", "", "") map("n", "mr", "CellularAutomaton make_it_rain"); map("n", "", function() vim.cmd("so") end) map("n", "", "ChatGPT") map("n", "fm", "TailwindConcealToggle", { desc = "Toggle Tailwind Conceal" }) -- Terminal map("n", "", function() Snacks.terminal.toggle() end, { desc = "Toggle Terminal" }) -- Gitbrowse map("n", "gb", function() Snacks.gitbrowse.open() end )