Skip to content
Discussion options

You must be logged in to vote

You need to call create_pre_hook in anonymous function

{
  "numToStr/Comment.nvim",
  dependencies = {
    "JoosepAlviste/nvim-ts-context-commentstring",
  },
  event = "VeryLazy",
  config = function()
    require("Comment").setup({
      pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
    })
  end
},

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by folke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant