return { -- Normal mode n = { -- ["bb"] = { "tabnew", desc = "New tab" }, -- ["bc"] = { "BufferLinePickClose", desc = "Pick to close" }, -- ["bj"] = { "BufferLinePick", desc = "Pick to jump" }, -- ["bt"] = { "BufferLineSortByTabs", desc = "Sort by tabs" }, -- Easy buffer navigation [""] = { "bnext", desc = "Switch to next buffer" }, [""] = { "bprevious", desc = "Switch to previous buffer" }, -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command -- My telescope keybindings [""] = { "Telescope help_tags", desc = "Find help with Telescope" }, ["gf"] = { "Telescope git_files", desc = "Find git files with Telescope" }, ["fq"] = { "Telescope quickfix", desc = "Find quickfixes with Telescope" }, ["fs"] = { "Telescope spell_suggest", desc = "Find spell suggestions with Telescope" }, ["fp"] = { "Telescope projects", desc = "Find projetcs with Telescope" }, -- My personal keybindings ["²"] = { name = "Personal" }, ["²t"] = { name = "Terminals" }, ["²tt"] = { "TermSelect", desc = "Select a terminal" }, ["²tg"] = { "terminal tig", desc = "Open tig in a new tab" }, ["²n"] = { name = "Neotree" }, ["²nb"] = { "Neotree toggle buffers left", desc = "Open Neotree Buffers" }, ["²ng"] = { "Neotree toggle git_status left", desc = "Open Neotree Git status" }, [""] = { 'Neotree toggle', desc = "File Explorer" }, -- F26 corresponds to on my keyboard [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, -- Insert mode i = { [""] = { 'Neotree toggle', desc = "File Explorer" }, -- F26 corresponds to on my keyboard [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, -- Terminal mode t = { -- setting a mapping to false will disable it -- [""] = false, -- Switch to normal mode in terminal mode [""] = { "" }, -- Clear Ctrl+l so that we can use it to clear the terminal [""] = false, [""] = false, -- Clear Ctrl-J and Ctrl-K so that we can use them to navigate the terminal (for lazygit) [""] = false, [""] = false, -- My terms [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, }