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

Can't use it with init.vim

Open VadimRight opened this issue 1 year ago • 1 comments

I have init.vim for my neovim setup with lua code.

But I can't use it.

Ctrl-O not working, Ctrl-Enter also not working.

I dont understand a thing Here is my lua config

lua << EOF
require("chatgpt").setup({
    api_key_cmd="echo 'mysupersecretkey",
    openai_params = {
      model = "gpt-4-o",
      frequency_penalty = 0,
      presence_penalty = 0,
      max_tokens = 300,
      temperature = 0,
      top_p = 1,
      n = 1,
    },
    keymaps = { 
       close = "<C-c>", 
       accept = "<C-y>", 
       toggle_diff = "<C-d>", 
       toggle_settings = "<C-o>", 
       toggle_help = "<C-h>", 
       cycle_windows = "<Tab>", 
       use_output_as_input = "<C-i>", 
     }, 
})
EOF

VadimRight avatar Jun 20 '24 10:06 VadimRight

@VadimRight Have you actually installed and loaded the plugin? Or is the above code the entirety of your init.vim?

WieeRd avatar Aug 05 '24 18:08 WieeRd