local plugins = require("plugins.mappings") local function map(mode, key, cmd, options) options = options or { noremap = true } vim.api.nvim_set_keymap(mode, key, cmd, options) end local M = {} M.bufdel = function() map("n", plugins.bufdel.closeBuffer, ":BufDel ") end M.bufferline = function() local m = plugins.bufferline map("n", m.nextBuffer, ":BufferLineCycleNext ") map("n", m.prevBuffer, ":BufferLineCyclePrev ") end M.gitsigns = function() local m = plugins.gitsigns map("n", m.blameLine, ":Gitsigns blame_line ") map("n", m.diffThis, ":Gitsigns diffthis ") end M.nvimtree = function() local m = plugins.nvimtree map("n", m.toggle, ":NvimTreeToggle ") map("n", m.focus, ":NvimTreeFocus ") end M.telescope = function() local m = plugins.telescope map("n", m.buffers, ":Telescope buffers ") map("n", m.diagnostics, ":Telescope diagnostic ") map("n", m.liveGrep, ":Telescope live_grep ") map("n", m.files, ":Telescope find_files ") map("n", m.gitCommits, ":Telescope git_commits ") map("n", m.gitStatus, ":Telescope git_status ") end return M