Comments (5)
The problem only occurs when you open nvim using the directory reference in question Ex: nvim .
The bug did not occur when calling only nvim
in the directory in question.
My config
require("bufferline").setup
{
options =
{
mode = "buffers",
close_icon = '',
separetor_style = 'thin',
offsets =
{
{
filetype = "NvimTree",
text = "File Explorer",
highlight = "Directory",
separetor = true,
padding = 1
},
},
}
}
from bufferline.nvim.
UPDATE:
It seems that this plugin works with Tokyonight's The issue can still be observed in v2.9.0
version, but not v3.0.0
or v3.1.0
.v2.9.0
, all the way back to the initial v1.0.0
release.
UPDATE:
I tested multiple versions for each of bufferline, tokyonight, and nvim-treesitter, going back to their respective initial releases while keeping the other two plugins at their most recent versions. Furthermore, I tried simultaneously decreasing the versions of all three plugins, choosing versions for each that were released around approximately the same time, going back to late 2022.
For all combinations I tried, I was unable to find any where the error could not be observed.
from bufferline.nvim.
@pwnalone thanks for digging in and taking the time to document this issue. As you say I've never encountered this as I don't use Tokyo night and never have so it's not immediately clear what this interaction is. One possible cause could be how that plugin interacts with this. I think there might be some module of this plugin's that that theme is using that this plugin might not be expecting or it's interacting in some way.
Tbh I'm not likely to be able to dig into this anytime soon, anyone else who wants to take a stab should please do or just document more stuff in here. As always community contributions re a fix would be massively appreciated as I'm definitely not in a place where I can dedicate much free time to these issue.
from bufferline.nvim.
@akinsho Thanks for getting back to me so quickly on this. I have switched to a different colorscheme as a temporary fix, but will try to troubleshoot this issue some more if I find the time. If I discover the source of the issue, I'll open a PR. In any case, I'll keep documenting any relevant information here.
from bufferline.nvim.
I am also experiencing this issue. I am using sainnhe/sonokai
if that's helpful but I was able to produce it with nvim's default colorscheme.
At one point I thought it was folke/todo-comments.nvim
because after adding event='VimEnter'
I was able to avoid the error. I made a bug there but wasn't able to produce it using only todo-comments so I closed it. folke/todo-comments.nvim#254
Here is a bare bones version of my init.lua that will also produce the error.
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
"nvim-tree/nvim-tree.lua",
config = true,
dependencies = { "nvim-tree/nvim-web-devicons" }
},
{
'akinsho/bufferline.nvim',
config = true,
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons',
},
'neovim/nvim-lspconfig',
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
from bufferline.nvim.
Related Issues (20)
- [Bug]: Styling filetype icon for all filetypes not working/possible HOT 4
- [Bug]: (UNKNOWN PLUGIN): Error executing lua: attempt to call a nil value HOT 1
- [Feature Request]: Ability to pin all open buffers HOT 2
- Some common questions HOT 1
- [Feature Request]: I'd like to close only the current tab. HOT 6
- E5108 error in bufferline.nvim HOT 27
- [Bug]: vim.tbl_isarray is deprecated, use vim.isarray instead HOT 3
- [Bug]: FIx for LazyVim users who can't open mutltiple bufers HOT 2
- [Bug]: the example Custom Area from the documentation can be improved
- [Bug]: E5108: Error executing lua after upgrade to nvim 0.10.0 HOT 23
- [Bug]: deprecation check with is_list does not cover new nightly v0.11 HOT 2
- [Bug]: Error after upgrading my NVIM to 0.10 HOT 6
- [Bug]: Error executing lua ...ker/start/bufferline.nvim/lua/bufferline/diagnostics.lua:75: attempt to call field 'is_enabled' (a nil value) HOT 2
- [Bug]: indicator highlight takes no effect HOT 2
- [Bug]: Error occured when opening the help page HOT 1
- [Bug]: lua/bufferline/ui.lua:119: attempt to call field 'is_list' (a nil value)
- [Bug]: _sometimes_ getting attempt to call field 'tbl _add_reverse_lookup' (a nil value) HOT 3
- [Feature Request]: Restore Tab Names HOT 1
- [Bug]: invalid buffer id: 3 in function 'nvim_buf_get_name' HOT 2
- [Feature Request]: Ability to select buffer from tabline and get it using lua api HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bufferline.nvim.