nvim: fix mini.comment keymap preference
This commit is contained in:
parent
d42d684ed8
commit
b4c284f01e
2 changed files with 6 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
||||||
-- Keymaps are automatically loaded on the VeryLazy event
|
-- 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
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
|
|
||||||
|
-- C-/ should be comment instead of lazyterm
|
||||||
|
vim.api.nvim_del_keymap("n", "<c-_>")
|
||||||
|
vim.api.nvim_set_keymap("n", "<c-_>", "gcc", {})
|
||||||
|
vim.api.nvim_set_keymap("v", "<c-_>", "gc", {})
|
||||||
|
vim.api.nvim_set_keymap("n", "<Leader><c-_>", "gcgc", {})
|
||||||
|
|
|
@ -1,14 +1,4 @@
|
||||||
return {
|
return {
|
||||||
|
|
||||||
{
|
|
||||||
"echasnovski/mini.comment",
|
|
||||||
keys = {
|
|
||||||
{ "<Leader><C-_>", "gcgc", remap = true, silent = true, mode = "n", desc = "Uncomment whole comment" },
|
|
||||||
{ "<C-_>", "gcc", remap = true, silent = true, mode = "n" },
|
|
||||||
{ "<C-_>", "gc", remap = true, silent = true, mode = "v" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"echasnovski/mini.pairs",
|
"echasnovski/mini.pairs",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
Loading…
Reference in a new issue