22 lines
416 B
Lua
22 lines
416 B
Lua
|
local function config()
|
||
|
local status_ok, comment = pcall(require, 'Comment')
|
||
|
if not status_ok then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
comment.setup({
|
||
|
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(),
|
||
|
padding = true,
|
||
|
sticky = true,
|
||
|
ignore = '^$', -- Don't comment empty lines
|
||
|
toggler = {
|
||
|
line = '<leader>/',
|
||
|
},
|
||
|
opleader = {
|
||
|
line = '<leader>/',
|
||
|
},
|
||
|
})
|
||
|
end
|
||
|
|
||
|
return config
|