Giter Club home page Giter Club logo

Comments (21)

mrjones2014 avatar mrjones2014 commented on May 18, 2024 1

Ah, finally got it working! The way I was handling theme selection was messing things up.

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

I was having this issue too. However, the integration does works. What happens is that if, in order of execution, NvimTree is loaded after Catppuccino then it'll override the highlights. But if you do it the other way around Catppuccino will override them.

As you see here in my config, Catppuccino is loaded after nvim tree loads, this is because of what I explained above.

I think I'm gonna add this as a FAQ. This isn't a very obvious thing so it'll be good to leave a note there for people using this integration too :)

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

I am loading it after nvim-tree though 🤔

I load themes as the very end of my init.lua

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

oh I see you have it actually configured in packer to load the plugin in a certain order. got it.

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

that's still not working for me.

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

May I see your packer init?

Edit: I found your dots.

In my case all plugins are lazy loaded/load in a specific order.

I'm not sure how packer works in the backend, but I don't think putting them in that order without any loading flags/settings would make them load in that given order. Could you try the after setting on Catppuccino?

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

Yeah, I tried updating it to use({ 'Pocco81/Catppuccino.nvim', after = 'nvim-tree.lua' }) but it still doesn't fix it for me

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

I don't think the lualine theme is loading properly either.

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

image

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

No wait my bad. I didn't explain how I was lazy loading stuff. Actually, Catppuccino should be loaded before nvim tree.

Please lazy load nvim tree like this.

Oh and btw, why aren't you lazy loading all your plugins? It takes no time and nvim will open in less than a few milliseconds. You can checkout my dots for inspiration :)

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

I don't think the lualine theme is loading properly either.

Once again, it's about the order of execution. I'd suggest you load it like how I'm loading Galaxyline.

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

yeah I tried that. still not working.

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

Did you push to your dots?

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

@pocco81 just pushed them now if you want to take a look

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

Ok I'm looking at them now and it seems like you didn't lazy load anything? Please consider lazy loading nvim tree.

Also, I told you to load Catppuccino before Nvim tree, which you didn't do (or maybe you did but didn't push that?)

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

Also Catppuccino should be loaded before Lualine or else it won't recognize it. Perhaps I'm not being clear about what the loading order should be?

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

Use:

use({ 'kyazdani42/nvim-tree.lua', cmd = 'NvimTreeToggle' })

use {
            "Pocco81/Catppuccino.nvim",
            config = function()

-- configure Catppuccino here
-              End,
       }

use {
            "hoob3rt/lualine.nvim",
            after = "Catppuccino.nvim",
            config = function()
                -- setup lualine with Catppuccino
            end,
        }

from nvim.

mrjones2014 avatar mrjones2014 commented on May 18, 2024

@pocco81 I've updated to lazy load some stuff. and loaded in the correct order, I think. still not working. Lualine is now not loading at all.

from nvim.

alex-popov-tech avatar alex-popov-tech commented on May 18, 2024

hey guys, a bit late to a party :)
here is mine:

{
    -- file tree
    'kyazdani42/nvim-tree.lua',
    requires = {'kyazdani42/nvim-web-devicons'},
    config = require('plugins.nvim-tree'),
    cmd = 'NvimTreeToggle'
}
....
    {
        'catppuccin/nvim',
        as = 'catppuccin',
        config = require('plugins.catppuccin')
    },

and nvim-tree bg is black ( as above ) :(

tried to do all sort of things above and did not work, tried to call setup manually after vim started and applied colorscheme again, did not work :(

cc @pocco81

from nvim.

wavded avatar wavded commented on May 18, 2024

Yeah something is off for me too, I use nvim-tree and feline and I loose feline and nvim_tree doesn't look right when I toggle it on. Not sure what to do, tried the suggestions in this case:
Screen Shot 2022-01-12 at 7 01 28 PM
Screen Shot 2022-01-12 at 7 01 36 PM

from nvim.

pocco81 avatar pocco81 commented on May 18, 2024

I personally have Nvim Tree setup this way:

	use({
		"kyazdani42/nvim-tree.lua",
		cmd = "NvimTreeToggle",
		config = function()
			-- your config here
		end,
	})

And Catppuccin is simply loaded at startup.

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