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

Copilot Panel Doesnt Generate anything #307

Open
ThaiDuy12345 opened this issue Aug 10, 2024 · 1 comment
Open

Copilot Panel Doesnt Generate anything #307

ThaiDuy12345 opened this issue Aug 10, 2024 · 1 comment

Comments

@ThaiDuy12345
Copy link

I have tried all of the filetypes like typescript, python, none of them were working but suggestion work fine tho
If you guys can see the Copilot icon in the statusline which reference the copilot status using the plugin Copilot-lualine, it showed a slash on the copilot icon which maybe it wasn't working ? I think so

bandicam.2024-08-11.04-44-26-298.mp4

My spec:
nvim: 0.10.1
WSL - Ubuntu 20.04

My config:

    "zbirenbaum/copilot.lua",
    keys = require("keymap").copilot_keymaps,
    cmd = "Copilot",
    event = "VimEnter",
    config = function ()
      require('copilot').setup({
        panel = {
          enabled = true,
          auto_refresh = false,
          keymap = {
            jump_prev = "[[",
            jump_next = "]]",
            accept = "<CR>",
            refresh = "gr",
            open = "<M-CR>"
          },
          layout = {
            position = "right", -- | top | left | right
            ratio = 0.4
          },
        },
        suggestion = {
          enabled = true,
          auto_trigger = true,
          hide_during_completion = true,
          debounce = 75,
          keymap = {
            accept = "<tab>",
            accept_word = false,
            accept_line = false,
            next = "<M-]>",
            prev = "<M-[>",
            dismiss = "<C-]>",
          },
        },
        filetypes = {
          ["*"] = true,
        },
        copilot_node_command = 'node', -- Node.js version must be > 18.x
        server_opts_overrides = {},
})
    end
@devboy
Copy link

devboy commented Aug 27, 2024

Having the same issue, using the default configuration. Suggestions in insert mode work though.

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

2 participants