Files
neovim-config/lua/taken/plugins/comment.lua
Taken 9556024c93 Added types
Signed-off-by: Taken <taken@mairimashita.org>
2024-03-17 16:34:11 +01:00

33 lines
835 B
Lua

--- @type LazyPluginSpec
return {
"numToStr/Comment.nvim",
keys = { "gcc", "gbc", { "gc", mode = "v" }, { "gb", mode = "v" }, "gcO", "gco", "gcA" },
config = function()
local comment = require("Comment")
comment.setup({
padding = true,
sticky = true,
ignore = nil,
toggler = {
line = "gcc",
block = "gbc",
},
opleader = {
line = "gc",
block = "gb",
},
extra = {
above = "gcO",
below = "gco",
eol = "gcA",
},
mappings = {
basic = true,
extra = true,
},
pre_hook = nil,
post_hook = nil,
})
end,
}