Skip to content

Custom action_paths documentation not clear #168

Description

@ben-wall

What are you actually supposed to put here:

      ....
      openai_edit_params = {
        model = "code-davinci-edit-001",
        temperature = 0,
        top_p = 1,
        n = 1,
      },
      actions_paths = { "/path/to/my/json.json" },
      show_quickfixes_cmd = "Trouble quickfix",
      ....

Also the function to call here? what is that and how should it be called?

wk.register({
    p = {
        name = "ChatGPTRun",
        e = {
            function()
                chatgpt.run_action()
            end,
            "Edit with instructions",
        },
    },
}, {
    prefix = "<leader>",
    mode = "v",
})

... 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

vmap <leader>gc :ChatGPTRun grammar_correction<cr>

but how would I use that and also add a custom param?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions