-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Sometimes I get that error when switching to next or previous buffer:
Error executing Lua callback: ...ge/.local/share/nvim/lazy/barbar.nvim/lua/barbar/api.lua:221: BufEnter Autocommands for "<buffer=3>": Vim(append):Error executing lua cal
lback: ...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/blame.lua:243: Cursor position outside buffer
stack traceback:
[C]: in function 'nvim_win_set_cursor'
...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/blame.lua:243: in function <...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/blame.lua:237>
[C]: in function 'set_current_buf'
...ge/.local/share/nvim/lazy/barbar.nvim/lua/barbar/api.lua:221: in function 'goto_buffer_relative'
...george/.local/share/nvim/lazy/barbar.nvim/lua/barbar.lua:34: in function <...george/.local/share/nvim/lazy/barbar.nvim/lua/barbar.lua:34>
stack traceback:
[C]: in function 'set_current_buf'
...ge/.local/share/nvim/lazy/barbar.nvim/lua/barbar/api.lua:221: in function 'goto_buffer_relative'
...george/.local/share/nvim/lazy/barbar.nvim/lua/barbar.lua:34: in function <...george/.local/share/nvim/lazy/barbar.nvim/lua/barbar.lua:34>
Started to happen after neovim update:
NVIM v0.11.1
Build type: RelWithDebInfo
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info
My config:
return {
"romgrk/barbar.nvim",
dependencies = {
"lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
"nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
},
event = { "BufReadPost", "BufNewFile", "BufWritePre" },
init = function()
vim.g.barbar_auto_setup = false
end,
-- stylua: ignore
opts = {
animation = false,
icons = {
-- Configure the base icons on the bufferline.
-- Valid options to display the buffer index and -number are `true`, 'superscript' and 'subscript'
buffer_index = false,
buffer_number = false,
button = "",
-- Enables / disables diagnostic symbols
diagnostics = {
[vim.diagnostic.severity.ERROR] = { enabled = true, icon = Icons.diagnostics.Error, },
[vim.diagnostic.severity.WARN] = { enabled = false },
[vim.diagnostic.severity.INFO] = { enabled = false },
[vim.diagnostic.severity.HINT] = { enabled = true, icon = Icons.diagnostics.Hint },
},
-- Configure the icons on the bufferline based on the visibility of a buffer.
-- Supports all the base icon options, plus `modified` and `pinned`.
alternate = { filetype = { enabled = false } },
current = { buffer_index = true },
inactive = { button = "×" },
visible = { modified = { buffer_number = false } },
},
},
version = "^1.0.0", -- optional: only update when a new 1.x version is released
}Metadata
Metadata
Assignees
Labels
No labels