comments.lua 891 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. local M = {
  2. {
  3. "numToStr/Comment.nvim",
  4. dependencies = {
  5. "JoosepAlviste/nvim-ts-context-commentstring",
  6. event = "VeryLazy",
  7. },
  8. config = function()
  9. vim.g.skip_ts_context_commentstring_module = true
  10. require("ts_context_commentstring").setup({
  11. enable_autocmd = false,
  12. })
  13. require("Comment").setup({
  14. pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
  15. opleader = {
  16. line = "gc",
  17. block = "gC",
  18. },
  19. mappings = {
  20. basic = true,
  21. },
  22. })
  23. end,
  24. },
  25. {
  26. "folke/todo-comments.nvim",
  27. config = function()
  28. require("todo-comments").setup({
  29. keywords = {
  30. FUCK = { icon = "󰇷 ", color = "error" },
  31. SHITTY = { icon = "󰇷 ", color = "error" },
  32. },
  33. })
  34. end,
  35. },
  36. }
  37. return M