---@type MappingsTable local M = {} M.general = { i = { [""] = { "", "paste from OS without autopairing" }, }, n = { -- [";"] = { ":", "enter command mode", opts = { nowait = true } }, ["go"] = { function() vim.lsp.buf.format { async = true } end, "LSP formatting", }, ["wv"] = { "v", "Split vertical" }, ["ws"] = { "s", "Split horizontal" }, ["wo"] = { "o", "Maximize split" }, ["wc"] = { "c", "Close split" }, ["w="] = { "w=", "Even splits" }, ["h"] = { "h", "Focus left split" }, ["j"] = { "j", "Focus lower split" }, ["k"] = { "k", "Focus upper split" }, ["l"] = { "l", "Focus right split" }, ["ee"] = { ':e =expand("%:p:h" . "/" )', "Copy relative path to file" }, ["er"] = { ":!echo -n % | pbcopy", "Copy absolute path to file" }, ["gn"] = { ":Telescope resume", "Resume telescope" }, ["eu"] = { '!!python -c "import uuid; print(uuid.uuid4())"', "Drop fresh uuid4" }, [""] = { '"+y', "Copy to OS clipboard" }, [",,"] = { ":w", "save" }, [" "] = { ":w", "save" }, [",z"] = { ":bnext", "Next buffer" }, [",v"] = { ":bprevious", "Previous buffer" }, ["z"] = { ":bnext", "Next buffer" }, ["v"] = { ":bprevious", "Previous buffer" }, ["n"] = { " NvimTreeToggle ", "Toggle nvimtree" }, ["N"] = { " set nu! ", "Toggle line number" }, ["c"] = { "bdelete", "Close Buffer" }, ["b"] = { " Telescope buffers ", "Find buffers" }, -- [""] = cmp.mapping.complete(), }, v = { [">"] = { ">gv", "indent" }, [""] = { '"+y', "Copy to OS clipboard" }, }, } M.crates = { n = { ["rcu"] = { function() require("crates").upgrade_all_crates() end, "Update crates", }, }, } -- more keybinds! return M