From ab6781f3ce5f553ff40c4ac60122302c6a28637e Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 18 Sep 2023 11:18:18 +0200 Subject: [PATCH] Updating mappings --- lua/taken/core/remaps.lua | 6 ------ lua/taken/plugins/comment.lua | 2 +- lua/taken/plugins/neogit.lua | 3 +++ lua/taken/plugins/otherplugins.lua | 1 + 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lua/taken/core/remaps.lua b/lua/taken/core/remaps.lua index 356d39d..c3eaf8a 100644 --- a/lua/taken/core/remaps.lua +++ b/lua/taken/core/remaps.lua @@ -79,12 +79,6 @@ set("n", "tt", "TroubleToggle ", { silent = true }) set("n", "tb", "DapToggleBreakpoint", { silent = true }) set("n", "tc", "DapContinue", { silent = true }) --- markdown preview -set("n", "bm", "MarkdownPreviewToggle ", { silent = true }) - --- neogit -set("n", "gg", "Neogit ", { silent = true }) - -- set("n", "n", ":NvimTreeToggle ") -- set("n", "e", ":NvimTreeFocus ") -- set("n", "r", ":NvimTreeRefresh ") diff --git a/lua/taken/plugins/comment.lua b/lua/taken/plugins/comment.lua index 2c8a9ac..d164f35 100644 --- a/lua/taken/plugins/comment.lua +++ b/lua/taken/plugins/comment.lua @@ -1,6 +1,6 @@ return { "numToStr/Comment.nvim", - keys = { "gcc", "gbc", "gc", "gb", "gcO", "gco", "gcA" }, + keys = { "gcc", "gbc", { "gc", mode = "v" }, { "gb", mode = "v" }, "gcO", "gco", "gcA" }, config = function() local comment = require("Comment") comment.setup({ diff --git a/lua/taken/plugins/neogit.lua b/lua/taken/plugins/neogit.lua index 2e823ef..138fd58 100644 --- a/lua/taken/plugins/neogit.lua +++ b/lua/taken/plugins/neogit.lua @@ -2,6 +2,9 @@ return { "NeogitOrg/neogit", dependencies = "nvim-lua/plenary.nvim", cmd = "Neogit", + keys = { + { "gg", "Neogit", desc = "Neogit" }, + }, config = function() local neogit = require("neogit") diff --git a/lua/taken/plugins/otherplugins.lua b/lua/taken/plugins/otherplugins.lua index 9e2575a..f382256 100644 --- a/lua/taken/plugins/otherplugins.lua +++ b/lua/taken/plugins/otherplugins.lua @@ -48,6 +48,7 @@ return { let g:mkdp_auto_close = 0 let g:mkdp_theme = 'dark' ]]) + vim.keymap.set("n", "bm", "MarkdownPreviewToggle ", { desc = "Toggle markdown preview" }) end, ft = "markdown", },