Skip to content
Discussion options

You must be logged in to vote

Found the solution, the config property in plugin config is used for running setup functions

here is my example

return {
    {
      "nvim-treesitter/nvim-treesitter",
      build = ":TSUpdate",
      config = function ()
        local configs = require("nvim-treesitter.configs")

        configs.setup({
            ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
            sync_install = false,
            highlight = { enable = true },
            indent = { enable = true },
          })
      end
  },
  {
    "nvim-telescope/telescope.nvim",
    tag = '0.1.5',
    opts = { extensions_list = { "fzf"  } },
    dependencies = {
      { '

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by praveshishere
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