15 lines
407 B
Lua
15 lines
407 B
Lua
return {
|
|
"numToStr/Comment.nvim",
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
dependencies = {
|
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
},
|
|
config = function ()
|
|
-- <leader>cc
|
|
local comment = require "Comment"
|
|
local ts_context_commentstring = require "ts_context_commentstring.integrations.comment_nvim"
|
|
comment.setup({
|
|
pre_hook = ts_context_commentstring.create_pre_hook(),
|
|
})
|
|
end,
|
|
}
|