---@type MappingsTable -- local M = {} local opts = { noremap = true, silent = true } M.general = { n = { ["nh"] = { ":nohl", "nohl", opts }, ["sv"] = { "s", "split window vertically", opts }, ["sh"] = { "v", "split window horizontally", opts }, ["se"] = { "=", "make split windows even width", opts }, ["sx"] = { ":close", "close current split window", opts }, ["tx"] = { ":tabclose", "close current tab", opts }, ["e"] = { ":NvimTreeToggle", "nvim-tree", opts }, ["ls"] = { ":LspStop", "LSP", opts }, ["lo"] = { ":LspStart", "LSP", opts }, ["cf"] = { ":NvimTreeCollapse", "nvim-tree", opts }, }, x = { ["J"] = { ":move '>+1gv-gv", "Move text up", opts }, ["K"] = { ":move '<-2gv-gv", "Move text down", opts }, [""] = { ":move '>+1gv-gv", "Move text up", opts }, [""] = { ":move '<-2gv-gv", "Move text down", opts }, }, i = { ["C-j"] = { 'copilot#Accept("")', "Copilot accept", { silent = true, expr = true } }, [""] = { "", "escape", opts }, }, } return M