nix/module/common/nvim/key/Comment.lua
2024-03-04 03:04:57 +03:00

6 lines
242 B
Lua

-- Toggle comment for the selected line.
vim.keymap.set("n", "<Leader>/", require("SingleComment").SingleComment, { expr = true })
-- Toggle comments for multiple lines.
vim.keymap.set("v", "<Leader>/", require("SingleComment").Comment, {})