Skip to content

Copilot disable broken? #118

@mx781

Description

@mx781

When running :Copilot disable on v1.49.0, I get this:

Error executing Lua callback: ...are/nvim/plugged/copilot.lua/lua/copilot/client/init.lua:158: Invalid 'group': 'copilot.client'          
stack traceback:                                                                                                                                   
        [C]: in function 'nvim_clear_autocmds'                                                                                                     
        ...are/nvim/plugged/copilot.lua/lua/copilot/client/init.lua:158: in function 'teardown'                                                    
        ...l/share/nvim/plugged/copilot.lua/lua/copilot/command.lua:78: in function <...l/share/nvim/plugged/copilot.lua/lua/copilot/command.lua:76
>                                                                                                                                                  
        ....local/share/nvim/plugged/copilot.lua/plugin/copilot.lua:41: in function <....local/share/nvim/plugged/copilot.lua/plugin/copilot.lua:9>

The suggestions continue appearing regardless.

Reverting back to v1.48.0 works - disable works as expected.

Edit: Upon further inspection, this seems like a broader problem that occurs on other versions as well. If I manually run Copilot enable, running disable doesn't error out. But in both cases, completions continue to appear. The only way I can disable them is via the g:copilot_filetypes var.

NVIM v0.10.4
Build type: Release
LuaJIT 2.1.1713484068

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions