From b4c284f01ea40251dfb89113363a65823fd13bd1 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 2 Oct 2023 21:51:48 +0200 Subject: [PATCH] nvim: fix mini.comment keymap preference --- .config/nvim/lua/config/keymaps.lua | 6 ++++++ .config/nvim/lua/plugins/coding.lua | 10 ---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 2c134f7..f99684e 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -1,3 +1,9 @@ -- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here + +-- C-/ should be comment instead of lazyterm +vim.api.nvim_del_keymap("n", "") +vim.api.nvim_set_keymap("n", "", "gcc", {}) +vim.api.nvim_set_keymap("v", "", "gc", {}) +vim.api.nvim_set_keymap("n", "", "gcgc", {}) diff --git a/.config/nvim/lua/plugins/coding.lua b/.config/nvim/lua/plugins/coding.lua index 714cba8..563d752 100644 --- a/.config/nvim/lua/plugins/coding.lua +++ b/.config/nvim/lua/plugins/coding.lua @@ -1,14 +1,4 @@ return { - - { - "echasnovski/mini.comment", - keys = { - { "", "gcgc", remap = true, silent = true, mode = "n", desc = "Uncomment whole comment" }, - { "", "gcc", remap = true, silent = true, mode = "n" }, - { "", "gc", remap = true, silent = true, mode = "v" }, - }, - }, - { "echasnovski/mini.pairs", enabled = false,