gco and gcO create conflicts inside Neovim as both have gc prefix

This commit is contained in:
Rahul Gavhar 2024-05-31 23:55:09 +05:30 committed by GitHub
parent abc6554e24
commit c01af2e875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,8 +76,8 @@ map("v", "<", "<gv")
map("v", ">", ">gv") map("v", ">", ">gv")
-- commenting -- commenting
map("n", "gco", "o<esc>Vcx<esc><cmd>normal gcc<cr>fxa<bs>", { desc = "Add Comment Below" }) map("n", "cmb", "o<esc>Vcx<esc><cmd>normal gcc<cr>fxa<bs>", { desc = "Add Comment Below" })
map("n", "gcO", "O<esc>Vcx<esc><cmd>normal gcc<cr>fxa<bs>", { desc = "Add Comment Above" }) map("n", "cma", "O<esc>Vcx<esc><cmd>normal gcc<cr>fxa<bs>", { desc = "Add Comment Above" })
-- lazy -- lazy
map("n", "<leader>l", "<cmd>Lazy<cr>", { desc = "Lazy" }) map("n", "<leader>l", "<cmd>Lazy<cr>", { desc = "Lazy" })