2022-02-28 08:41:22 -06:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.config()
|
|
|
|
local status_ok, comment = pcall(require, "Comment")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
comment.setup {
|
2022-10-24 20:52:52 -07:00
|
|
|
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(),
|
2022-09-19 17:02:20 -07:00
|
|
|
padding = true,
|
|
|
|
sticky = true,
|
|
|
|
ignore = '^$', -- Don't comment empty lines
|
|
|
|
toggler = {
|
|
|
|
line = '<leader>/',
|
|
|
|
},
|
|
|
|
opleader = {
|
|
|
|
line = '<leader>/',
|
|
|
|
},
|
2022-02-28 08:41:22 -06:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|
|
|
|
|