Custom action_paths documentation not clear #346
-
What are you actually supposed to put here:
Also the function to call here? what is that and how should it be called?
... this is not working for me. These new features coming in are lovely but unfortunately I'm finding it difficult to implement them in they ways I would like to. The goal here is to use something like leader, p, e to run the to run something like :ChatGPTRun grammar_correction. I'm having some success with
but how would I use that and also add a custom param? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
actions_path
is a table in lua, so you might have something like this:I'm using LazyVim so the actual structure of your config may vary, of course.