Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't think the nvim-tree integration is working? #7

Closed
mrjones2014 opened this issue Aug 24, 2021 · 21 comments
Closed

I don't think the nvim-tree integration is working? #7

mrjones2014 opened this issue Aug 24, 2021 · 21 comments

Comments

@mrjones2014
Copy link
Contributor

How do I get sidebars such as nvim-tree to have the darker color like your screenshot? I'd also like to apply this darker color to terminal buffers and Telescope if possible.

image

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

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 :)

@pocco81 pocco81 closed this as completed Aug 24, 2021
@mrjones2014
Copy link
Contributor Author

I am loading it after nvim-tree though 🤔

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

@mrjones2014
Copy link
Contributor Author

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

@mrjones2014
Copy link
Contributor Author

that's still not working for me.

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

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?

@mrjones2014
Copy link
Contributor Author

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

@mrjones2014
Copy link
Contributor Author

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

@mrjones2014
Copy link
Contributor Author

image

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

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 :)

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

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.

@mrjones2014
Copy link
Contributor Author

yeah I tried that. still not working.

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

Did you push to your dots?

@mrjones2014
Copy link
Contributor Author

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

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

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?)

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

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?

@pocco81
Copy link
Member

pocco81 commented Aug 24, 2021

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,
        }

@mrjones2014
Copy link
Contributor Author

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

@mrjones2014
Copy link
Contributor Author

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

@alex-popov-tech
Copy link

alex-popov-tech commented Jan 7, 2022

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

@wavded
Copy link

wavded commented Jan 13, 2022

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

@pocco81
Copy link
Member

pocco81 commented Jan 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants