Add Config Files

This commit is contained in:
ayushDumasia 2024-09-12 22:26:43 +05:30
parent ade387bdb6
commit f071a73fdb
520 changed files with 45353 additions and 1 deletions

View file

@ -0,0 +1,24 @@
return {
"numToStr/Comment.nvim",
config = function()
require('Comment').setup({
-- Add any configuration options here
toggler = {
line = 'gcc', -- Toggle comment for the current line
block = 'gbc', -- Toggle comment for a block of code
},
opleader = {
line = 'gc', -- Operator-pending mode mapping for line comments
block = 'gb', -- Operator-pending mode mapping for block comments
},
mappings = {
basic = true, -- Includes basic mappings like `gcc`, `gbc`, `gc[count]{motion}`, and `gb[count]{motion}`
extra = true, -- Includes extra mappings like `gco`, `gcO`, `gcA`
extended = false, -- Includes extended mappings like `g>[count]{motion}`, `g<[count]{motion}`
},
pre_hook = nil, -- Function to call before commenting, useful for languages like TypeScript where you want to check the file type
post_hook = nil, -- Function to call after commenting
})
end,
}