Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use it with init.vim #448

Open
VadimRight opened this issue Jun 20, 2024 · 0 comments
Open

Can't use it with init.vim #448

VadimRight opened this issue Jun 20, 2024 · 0 comments

Comments

@VadimRight
Copy link

VadimRight commented Jun 20, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant