enc: update config which-key

This commit is contained in:
Pojok Code 2024-07-13 13:07:24 +07:00
parent 1aa86bfa2d
commit 7962b741bd
11 changed files with 446 additions and 202 deletions

View file

@ -6,6 +6,22 @@ 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,