mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
28 lines
622 B
Lua
28 lines
622 B
Lua
return {
|
|
"numToStr/Comment.nvim",
|
|
lazy = true,
|
|
opts = function()
|
|
return {
|
|
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
|
|
}
|
|
end,
|
|
keys = {
|
|
{
|
|
"<leader>/",
|
|
function()
|
|
require("Comment.api").toggle.linewise.current()
|
|
end,
|
|
desc = " Coment line",
|
|
mode = "n",
|
|
},
|
|
{
|
|
"<leader>/",
|
|
"<esc><cmd>lua require('Comment.api').toggle.linewise(vim.fn.visualmode())<cr>",
|
|
desc = " Coment line",
|
|
mode = "v",
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
require("Comment").setup(opts)
|
|
end,
|
|
}
|