zbirenbaum / copilot-cmp

Lua plugin to turn github copilot into a cmp source
MIT License
1.13k stars 41 forks source link

Copilot is unknown source #29

Closed beauwilliams closed 2 years ago

beauwilliams commented 2 years ago

Copilot is installed and running. What am I doing wrong?

Screen Shot 2022-09-13 at 7 47 05 pm Screen Shot 2022-09-13 at 7 49 05 pm
        use({
            'zbirenbaum/copilot.lua',
            event = { 'VimEnter' },
            config = function()
                vim.defer_fn(function()
                    require('copilot').setup({})
                end, 100)
            end,
        })

        use({
            'zbirenbaum/copilot-cmp',
            after = {
                'copilot.lua',
                'nvim-cmp',
            },
            config = function()
                require('copilot_cmp').setup()
            end,
        })
    sources = {
        {
            name = 'copilot',
            -- keyword_length = 0,
            max_item_count = 3,
            },
            ...
beauwilliams commented 2 years ago

Fixed by just trying over and over. Seems to have been a race condition with lazy loading or packer not compiling correctly