nvim-config/lua/configs/comment.lua

25 lines
487 B
Lua
Raw Normal View History

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