Comments (9)
@Akin909 already it works with dein
from bufferline.nvim.
@carlitux this is probably related to the theme you're using and whether or not it is setting certain highlight groups which the plugin uses to decide what colors to use. What theme are you using? does this happen if you try it with another theme?
Also just to be sure are you using nightly nvim, it won't work without that
EDIT: It also requires truecolors since it only looks at gui*
colors like guifg
or guibg
from bufferline.nvim.
Sorry for the vague context, I am just moving from dein to packer with all Lua code to config. In the process, I started getting the issue.
I use https://github.com/drewtempelmeyer/palenight.vim as a theme.
Maybe if you can guide me to debug the plugin I can have a better understanding of the issue and hopefully a PR.
from bufferline.nvim.
@carlitux I've just tried that theme out locally and it works fine, can you tell me more about your setup. The plugin shouldn't really need any configuration after
you load it with your package manager. Not sure how dein
works at all but after the plugin has been loaded you call setup()
.
I made some changes this morning which might be why I don't see this error. Let me know if you try again and it's still erroring. If so can you try it with a minimal vimrc and see if it still errors e.g. only load the plugin and the theme.
from bufferline.nvim.
Sorry I didn't explain well.
Now I am using https://github.com/wbthomason/packer.nvim
set termguicolors
packadd packer.nvim
lua << EOF
local packer = require('packer')
local use = packer.use
packer.init()
use {'wbthomason/packer.nvim', opt = true}
use {'drewtempelmeyer/palenight.vim'}
use {'ryanoasis/vim-devicons', opt = true}
use {
'Akin909/nvim-bufferline.lua',
requires = {'ryanoasis/vim-devicons', 'drewtempelmeyer/palenight.vim'},
opt = true
}
EOF
manually
colorscheme palenight
packadd nvim-bufferline.lua
lua require'bufferline'.setup()
in this way I am able to reproduce the bug
from bufferline.nvim.
Ah tbh I'm pretty unfamiliar with how the native packages work or how packer
works. My guess would be the plugin is getting loaded at the wrong time somehow or before the highlights have been set I'm really not sure just a pure guess. When setup runs it expects the highlights it's using to be set.
In the minimal config you shared are you loading palenight somewhere? there is no packadd for the colorscheme 🤷
from bufferline.nvim.
yes, packer.nvim uses native packages.
As this is colorscheme using or not using packadd for palenight no difference.
from bufferline.nvim.
If I get a chance I'll see if I can try and run it with native packages to reproduce or if you get the chance can you see if it works with something like vim-plug
or dein
from bufferline.nvim.
Since this relates to another plugin/plugin manager I'm gonna close this let me know if you're still having issues
from bufferline.nvim.
Related Issues (20)
- [Feature Request]: Rename tabpages (not the buffer 'tabs') HOT 1
- [Bug]: Keyboard interrupt HOT 5
- [Feature Request]: Customize duplicate prefix text HOT 1
- [Bug]: Random close icon in bufferline HOT 2
- [Feature Request]: Add buttons to buffers HOT 2
- Group names are wrongly formatted for `tab` styled group separators HOT 1
- [Feature Request]: fire user event on pin buffer HOT 8
- [Bug]: custom separators not using separator_selected highlight as they should and not being at very start or end of bufferline. HOT 1
- [Bug]: E5108: Error executing lua: attempt to get length of field 'text' (a nil value) HOT 2
- [Feature Request]: Expose buffer index HOT 1
- [Feature Request]: Persistent `:BufferLinePick` letters
- [Feature Request]: The derive hlgroup of function<derive_colors> should be configurable HOT 1
- [Bug]: attempt to call field 'setup' (a nil value) HOT 4
- [Bug]: With bufferline and telescope, buffers open in Insert (a) mode
- [Bug]: Icon bg colour not correct HOT 1
- [Bug]: (UNKNOWN PLUGIN): Error executing lua: attempt to call a number value HOT 5
- [Feature Request]: Text alignment in buffer tabs HOT 2
- [Bug]: offset doesn't work with neo-tree HOT 1
- [Bug]: Highlight "buffer" doesn't work
- [Bug]: Bufferline sets `showtabline=2` HOT 24
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.