Skip to content

Sqlite jumping up to 100% usage #688

@vito-c

Description

@vito-c

1247972 20 0 11.8G 2368M 82064 R 100.0 1.8 3:21.59 node /.local/share/nvim/lazy/copilot.lua/copilot/js/language-server.js --stdio

my copilot instance is going bananas when running my application in a terminal. I change my terminal names so they match my process I am running something like:

    pcall(vim.api.nvim_buf_set_name, 0, name)

Here is my config:

    {
        "zbirenbaum/copilot.lua",
        cmd = "Copilot",
        event = "InsertEnter",
        config = function()
            require("copilot").setup({
                should_attach = function(_, bufname)
                    if string.match(bufname, "test.term") then
                        return false
                    end

                    return true
                end,
                suggestion = {
                    enabled = true,
                    auto_trigger = true,
                    keymap = {
                        accept = "<C-g>",
                        next = "<C-n>",
                        prev = "<C-p>",
                        dismiss = "<C-\\>",
                    },
                },
                panel = { enabled = false },
                filetypes = {
                    terminal = false,
                    help = false,
                    json = false,
                    gitcommit = true,
                    markdown = true,
                }
            })
        end,
    }

I have the terminal filetype set to false maybe there is a way to set it by buffer type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions