mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-03 09:34:41 +02:00
feat(keymaps): add comment above/below current line with gco/gcO
This commit is contained in:
parent
e68ff6897e
commit
47a8736278
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,10 @@ map("n", "<leader>K", "<cmd>norm! K<cr>", { desc = "Keywordprg" })
|
|||
map("v", "<", "<gv")
|
||||
map("v", ">", ">gv")
|
||||
|
||||
-- commenting
|
||||
map("n", "gco", "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" })
|
||||
|
||||
-- lazy
|
||||
map("n", "<leader>l", "<cmd>Lazy<cr>", { desc = "Lazy" })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue