From 2ffcd075e9fda21dc61e4bb268634026398c4954 Mon Sep 17 00:00:00 2001 From: Saeed Afzal Date: Wed, 9 Mar 2022 15:14:53 +0000 Subject: [PATCH] Update mappings --- lua/core/mappings.lua | 38 --------------------------------- lua/plugins/config/whichkey.lua | 2 +- lua/plugins/setup.lua | 15 ------------- lua/plugins/whichkeymap.lua | 0 4 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 lua/core/mappings.lua delete mode 100644 lua/plugins/whichkeymap.lua diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua deleted file mode 100644 index 6cbb7e6..0000000 --- a/lua/core/mappings.lua +++ /dev/null @@ -1,38 +0,0 @@ -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 ") -end - -M.gitsigns = function() - -- map("n", m.blameLine, ":Gitsigns blame_line ") - -- map("n", m.diffThis, ":Gitsigns diffthis ") -end - -M.nvimtree = function() - -- map("n", m.toggle, ":NvimTreeToggle ") - -- map("n", m.focus, ":NvimTreeFocus ") -end - -M.telescope = function() - -- map("n", m.buffers, ":Telescope buffers ") - -- 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 diff --git a/lua/plugins/config/whichkey.lua b/lua/plugins/config/whichkey.lua index 11ce93b..06edc8d 100644 --- a/lua/plugins/config/whichkey.lua +++ b/lua/plugins/config/whichkey.lua @@ -31,5 +31,5 @@ wk.register({ d = { "Gitsigns diffthis", "Diff This" } }, - [""] = { "BufferLineCycleNext" } + [""] = { "BufferLineCycleNext", "Next Buffer" } }) diff --git a/lua/plugins/setup.lua b/lua/plugins/setup.lua index c8cc458..a9b8dee 100644 --- a/lua/plugins/setup.lua +++ b/lua/plugins/setup.lua @@ -41,9 +41,6 @@ require("packer").startup(function(use) "ojroques/nvim-bufdel", config = function() require("plugins.config.bufdel") - end, - setup = function() - require("core.mappings").bufdel() end } @@ -55,9 +52,6 @@ require("packer").startup(function(use) }, config = function() require("plugins.config.bufferline") - end, - setup = function() - require("core.mappings").bufferline() end } @@ -74,9 +68,6 @@ require("packer").startup(function(use) requires = "nvim-lua/plenary.nvim", config = function() require("gitsigns").setup() - end, - setup = function() - require("core.mappings").gitsigns() end } @@ -100,9 +91,6 @@ require("packer").startup(function(use) requires = "kyazdani42/nvim-web-devicons", config = function() require("plugins.config.nvimtree") - end, - setup = function() - require("core.mappings").nvimtree() end } @@ -127,9 +115,6 @@ require("packer").startup(function(use) }, config = function() require("plugins.config.telescope") - end, - setup = function() - require("core.mappings").telescope() end } diff --git a/lua/plugins/whichkeymap.lua b/lua/plugins/whichkeymap.lua deleted file mode 100644 index e69de29..0000000