Skip to content

Custom action_paths documentation not clear #346

Answered by transcendr
ben-wall asked this question in Q&A
Discussion options

You must be logged in to vote

actions_path is a table in lua, so you might have something like this:

return {
  "jackMort/ChatGPT.nvim",
  dependencies = {
    "MunifTanjim/nui.nvim",
    "nvim-lua/plenary.nvim",
    "nvim-telescope/telescope.nvim",
  },
  event = "VeryLazy",
  opts = {},
  config = function()
    require("chatgpt").setup({
      api_key_cmd = "echo $OPENAI_API_KEY",
      -- [ ... other settings ... ]
      actions_paths = { "~/.config/nvim/lua/plugins/chatgpt-actions.json" },
    })
  end,
}

I'm using LazyVim so the actual structure of your config may vary, of course.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jackMort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #168 on December 14, 2023 12:25.