Git Product home page Git Product logo

Comments (9)

carlitux avatar carlitux commented on May 20, 2024 1

@Akin909 already it works with dein

from bufferline.nvim.

akinsho avatar akinsho commented on May 20, 2024

@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.

carlitux avatar carlitux commented on May 20, 2024

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.

akinsho avatar akinsho commented on May 20, 2024

@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.

palenight

from bufferline.nvim.

carlitux avatar carlitux commented on May 20, 2024

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.

akinsho avatar akinsho commented on May 20, 2024

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.

carlitux avatar carlitux commented on May 20, 2024

yes, packer.nvim uses native packages.

As this is colorscheme using or not using packadd for palenight no difference.

from bufferline.nvim.

akinsho avatar akinsho commented on May 20, 2024

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.

akinsho avatar akinsho commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.