ChatGPT.nvim icon indicating copy to clipboard operation
ChatGPT.nvim copied to clipboard

add config option to set custom ActAs prompts

Open kiil opened this issue 3 years ago • 3 comments

Hi

The awesome ActAs prompts are awesome.

But I would like to use my own in Danish ( they are here: https://raw.githubusercontent.com/kiil/danske-chatgpt-prompts/main/prompts.csv ) instead.

It would be great if the url for the ActsAs prompts was not hardcoded but could be chnaged as a config option.

Thanks for a great plugin.

kiil avatar Jan 08 '23 12:01 kiil

I think this issue may be closed now

00sapo avatar Apr 08 '23 09:04 00sapo

Would it be possible to set the different prompts from a local file? Example: predefined_chat_gpt_prompts = "/somewhere/on/my/machine/prompts.csv"

nicolimo86 avatar Aug 01 '23 11:08 nicolimo86

It uses curl under the hook. You can use the config to get prompt csv file from loca

        predefined_chat_gpt_prompts = "file:///" .. vim.fn.expand("~") .. "/.config/nvim/lua/plugins/chatgpt-prompts.csv",

"file:///" .. vim.fn.expand("~") .. "/.config/nvim/lua/plugins/chatgpt-prompts.csv" is ~/.config/nvim/lua/plugins/chatgpt-prompts.csv in lua format

kentchiu avatar Dec 15 '23 14:12 kentchiu