akinsho / akinsho/bufferline.nvim

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

未关闭
#866 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Lua
星标
4.4k
派生
240
PR 合并指标
30 天内没有已合并 PR

描述

### Is there an existing issue for this?

- [X] 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:
```lua
{
'akinsho/bufferline.nvim',
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons',
config = function()
require('bufferline').setup {}
end
}
```

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

### Additional Information

...

### commit

_No response_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。