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

[Bug]: With bufferline and telescope, buffers open in Insert (a) mode #866

Open
1 task done
FedeAbella opened this issue Feb 18, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@FedeAbella
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

After setting up bufferline with the minimal configuration (just calling require('bufferline').setup {}, opening a new buffer from Telescope (find_files) causes the new buffer to automatically open in insert mode, as if "a" was pressed. This doesn't happen with just Telescope, and it doesn't happen with bufferline from netrw.

What did you expect to happen?

Buffers open in normal mode

Config

Bufferline:

{
    'akinsho/bufferline.nvim',
    version = "*",
    dependencies = 'nvim-tree/nvim-web-devicons',
    config = function()
        require('bufferline').setup {}
    end
}

Telescope:

{
    'nvim-telescope/telescope.nvim', branch = '0.1.x',
    dependencies = { 'nvim-lua/plenary.nvim' },
    config = function()
        require('telescope').setup {
            defaults = {
                sorting_strategy = 'ascending',
                mappings = {
                    i = {
                        ["<C-h>"] = "which_key"
                    }
                },
                vimgrep_arguments = {
                    "rg",
                    "--color=never",
                    "--no-heading",
                    "--with-filename",
                    "--line-number",
                    "--column",
                    "--smart-case",
                    "--trim"
                }
            }
        }
}

Additional Information

...

commit

No response

@FedeAbella FedeAbella added the bug Something isn't working label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant