mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
batman!
This commit is contained in:
commit
ae7d9bf4b6
63 changed files with 2160 additions and 0 deletions
38
lua/config/plugins/comments.lua
Normal file
38
lua/config/plugins/comments.lua
Normal file
|
@ -0,0 +1,38 @@
|
|||
local M = {
|
||||
{
|
||||
"numToStr/Comment.nvim",
|
||||
dependencies = {
|
||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||
event = "VeryLazy",
|
||||
},
|
||||
},
|
||||
{ "folke/todo-comments.nvim" },
|
||||
}
|
||||
|
||||
M.config = function()
|
||||
vim.g.skip_ts_context_commentstring_module = true
|
||||
|
||||
require("ts_context_commentstring").setup({
|
||||
enable_autocmd = false,
|
||||
})
|
||||
|
||||
require("Comment").setup({
|
||||
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
|
||||
opleader = {
|
||||
line = "gc",
|
||||
block = "gC",
|
||||
},
|
||||
mappings = {
|
||||
basic = true,
|
||||
},
|
||||
})
|
||||
|
||||
require("todo-comments").setup({
|
||||
keywords = {
|
||||
FUCK = { icon = " ", color = "error" },
|
||||
SHITTY = { icon = " ", color = "error" },
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue