Comments (22)
Outstanding! thanks!
from nvim.
I love them so much too! they integrate perfectly with nvim + catppuccino, which is where I spend 80% of my day on :)
from nvim.
Good news! I cloned your setup and indeed, the problem is in your nvim config:
Before:
After I fixed it:
I also found some issues with the loading of nvim-web-devicons
and nvim-tree
. Here is the final result of my modifications:
(the numbers represent the order in which things are being loaded and the things in the red boxes were the "important" modifications I made)
Now, the question is, do you want me to PR it to your config or could you just copy paste? the code is actually really short:
use({ "wbthomason/packer.nvim", event = "VimEnter" })
use({
"kyazdani42/nvim-web-devicons",
after = "packer.nvim",
config = function()
require('plugins.devicons')
end,
})
use {
'akinsho/bufferline.nvim',
after = "nvim-web-devicons",
config = function()
require('plugins.bufferline')
end,
}
use {
'Pocco81/Catppuccino.nvim',
after = 'bufferline.nvim',
config = function()
require('plugins.catppuccino')
end,
}
use {
'kyazdani42/nvim-tree.lua',
cmd = "NvimTreeToggle",
config = function()
require('plugins.nvimtree')
end
}
from nvim.
And no worries, I'll copy paste, you've already helped me :P
Btw, for the indent-blankline integration the config was updated + remember to change this:
to this:
Oh and for the fix for bufferline, if you are just gonna copy and paste remember to remove the repeated plugins (the ones in my comment above) below too :)
from nvim.
Before: (#11091e
)
After: (#090511
)
from nvim.
@pocco81 bro:( I don't get why mine still looks different than yours:
The color which I get for unactive tabs is #0f081c
and #150b26
for active ones. I tried deactivating my other plugins but still no luck :/ I have the integration enabled.
from nvim.
Hmm that's very weird...
- May I see your config?
- Which branch are you using?
- The screenshot you just sent me looks exactly the same from the previous one. Perhaps you forgot to update?
- Are you using
~HEAD
? - Is this only happening with
neon_latte
? - Could you try this config:
local present, catppuccino = pcall(require, "catppuccino")
if not present then
return
end
catppuccino.setup({
colorscheme = "neon_latte",
transparency = false,
term_colors = false,
styles = {
comments = "italic",
functions = "italic",
keywords = "italic",
strings = "NONE",
variables = "NONE",
},
integrations = {
treesitter = true,
native_lsp = {
enabled = true,
styles = {
errors = "italic",
hints = "italic",
warnings = "italic",
information = "italic",
},
},
lsp_trouble = false,
lsp_saga = true,
gitgutter = false,
gitsigns = true,
telescope = true,
nvimtree = {
enabled = true,
show_root = false,
},
which_key = false,
indent_blankline = true,
dashboard = true,
neogit = false,
vim_sneak = false,
fern = false,
barbar = false,
bufferline = true,
markdown = true,
lightspeed = false,
ts_rainbow = false,
},
})
catppuccino.load()
from nvim.
Btw which font is that? the italics look sick!
from nvim.
- My config:
local catppuccino = require('catppuccino')
catppuccino.setup {
colorscheme = 'neon_latte',
term_colors = true,
styles = {
comments = "italic",
functions = "italic",
keywords = "italic",
strings = "italic",
variables = "NONE",
},
integrations = {
treesitter = true,
native_lsp = {
enabled = true,
styles = {
errors = "italic",
hints = "italic",
warnings = "italic",
information = "italic"
}
},
lsp_trouble = true,
lsp_saga = false,
gitgutter = false,
gitsigns = true,
telescope = true,
nvimtree = {
enabled = true,
show_root = true,
},
which_key = true,
indent_blankline = true,
dashboard = true,
neogit = false,
vim_sneak = false,
fern = false,
barbar = false,
bufferline = true,
markdown = true,
lightspeed = false,
ts_rainbow = true
}
}
catppuccino.load()
- I'm using the default branch (main)
- I updated with packer.nvim and git log says I'm on the latest commit
- How do I know that?:(
- I also tried with dark_catppuccino and tabs seem to have very low contrast too, I can share screenshots if needed
- I put that config but still no luck
Another thing to consider which I'm realizing right now is that I didn't even have the color Before: #11091e
you mentioned, instead I got #0f081c
like I said, as if the integration wasn't taking any effect 🤔 I wonder if there's a problem with my set up...
from nvim.
@pocco81 The font is Dank Mono, I like it a lot!
from nvim.
Yeah it's probably a problem on your end, not necessarily with your nvim/Catppuccino config, but rather with your terminal/multiplexer.
One o Catppuccino's contributors had this issue (#9), which ended up being an issue on his end because of $TERM
not being set properly.
- By any chance, are you using a terminal multiplexer (like Tmux)?
- Can I see the output of
echo $TERM
- Which terminal emulator are you using?
from nvim.
How do I know that?:(
You mean updating? Just run :PackerSync
.
from nvim.
Actually, looking at the screenshots your background looks exactly like mine and it matches the color of the active tab in bufferline. So I don't think the issue is related with the $TERM
var.
I think the issue might be your bufferline config. Can I see your bufferline config instead?
Also notice, that regardless of what your config is, remember that bufferline must be loaded before Catppuccino so that Catppuccino can overwrite its highlights.
from nvim.
Hey! sorry for the late replay.
Yeah I use tmux but I tried without it, so echo $TERM
outputs tmux-256color
with tmux and xterm-256color
without it.
This is my bufferline config:
local api = vim.api
api.nvim_set_keymap("n", "<C-j>", "<cmd>BufferLineCyclePrev<CR>", {noremap = true, silent = true})
api.nvim_set_keymap("n", "<C-k>", "<cmd>BufferLineCycleNext<CR>", {noremap = true, silent = true})
require("bufferline").setup {
options = {
offsets = {
{
filetype = "NvimTree",
text = "Nvim tree",
highlight = "FileExplorer"
}
},
separator_style = 'slant'
}
}
vim.cmd("hi FileExplorer gui=bold,italic")
I tried removing all of those options and just letting require('bufferline').setup()
but didn't work. I use gnome-terminal, but even installed alacritty and the issue still remains:
Also notice, that regardless of what your config is, remember that bufferline must be loaded before Catppuccino so that Catppuccino can overwrite its highlights.
How can I ensure this?
If it helps, here you can find all my neovim configs, including my plugins.
from nvim.
You mean updating? Just run :PackerSync.
Yes, I did that.
from nvim.
How can I ensure this?
even installed alacritty
Remember that in Alacritty you have to put the same $TERM
setting as in Tmux. Alacritty has its own config.
from nvim.
I'll try your setup. In the mean time, could you try the base tmux config [and optionally the colorscheme integration] provided by Catppuccino?
Edit: Btw, where is your tmux conf?
Edit 1: yeah I still think the issue is unrelated to your tmux conf or to $TERM
not being set properly (btw the new Catppuccino themes for tmux were added yesterday, go check them out!), Just put the after
thing on catppuccino.nvim in Packer and you should be good to go :)
from nvim.
Hello again bro, I tried putting that line of config with no luck. One thing I noticed though that may help to debug the issue is:
- Uninstall Catppucinno by removing the plugin from
lua/plugins/init.lua
and running:PackerClean
- Reinstall Catppucinno by adding the plugin again, running
:PackerInstall
and immediately (without exiting neovim) run:PackerCompile
once the repo is cloned - You will see the colors set on bufferline as expected by Catppuccino, but once you exit an reopen neovim they'll be gone
Here is a screen cast of what I mean.
from nvim.
This is my tmux.conf:
set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin 'tmux-plugins/tmux-battery'
# Make vim colors work
#set -g default-terminal "screen-256color"
# Enable true colors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
# Windows 1 based index and renumber them when one is closed
set -g base-index 1
set -g renumber-windows on
set -s escape-time 0
set -g mouse off
set -g status-keys vi
setw -g mode-keys vi
# Open new windows in the current working directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Vim-like key bindings for switching panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes with vim-like key bindings
bind -r C-h resize-pane -L 2
bind -r C-j resize-pane -D 2
bind -r C-k resize-pane -U 2
bind -r C-l resize-pane -R 2
set -g message-style bg=default,fg=blue
set -g message-command-style bg=default,fg=blue
# Panes
# set -g pane-border-status top
set -g pane-border-style fg=colour8
set -g pane-active-border-style fg=blue
# set -g pane-border-format "#{#[bold]} #{pane_current_command} "
# Battery plugin. Status icons.
set -g @batt_icon_status_charging ""
set -g @batt_icon_status_charged ""
set -g @batt_icon_charge_tier8 ''
set -g @batt_icon_charge_tier7 ''
set -g @batt_icon_charge_tier6 ''
set -g @batt_icon_charge_tier5 ''
set -g @batt_icon_charge_tier4 ''
set -g @batt_icon_charge_tier3 ''
set -g @batt_icon_charge_tier2 ''
set -g @batt_icon_charge_tier1 ''
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
run -b '~/.tmux/plugins/tpm/tpm'
But as you said, the issue remains even without tmux.
Sorry I have it a little outdated (since I don't use some stuff in there anymore) and cluttered
from nvim.
I just tried with the base config and neon_latte for tmux and still no changes, but, the themes are sick!! I'm staying with it!
from nvim.
Dude, you are a beast!! Haha what was wrong with icons? I didn't even know 🤣 thank you very much, I'll give it I try when I get home.
And no worries, I'll copy paste, you've already helped me :P
from nvim.
Hey bro, after reading this issue I understand that bufferline.nvim is no longer supporting highlight groups, if you see the guy there (siduck76) had to change his config and use a lua table instead (see). Don't you think it'd be cleaner for this integration if Catppuccino just provides a lua table with the colors of the current integration which we can call from our bufferline.nvim config? that way we could avoid playing around with packer.nvim.
from nvim.
Related Issues (20)
- Treesitter context highlighting when transparent_background=true HOT 3
- (option to) Disable all integrations by default HOT 1
- Incorrect typing for `illuminate` integration
- add tabby.nvim integration (colors) HOT 1
- Incorrect Typescript keyword color with TreeSitter enabled HOT 2
- Bufferline background breaks when Catppuccin is set to transparent background and bufferline style is styled as non-default HOT 4
- nvim-navbuddy integration
- Publish plugin on luarocks
- Lualine highlight color is not uniform
- lazy.nvim: module 'catppuccin.groups.integrations.colorful_winsep' HOT 5
- Add support for `mini.statusline` HOT 1
- mini.nvim integration seems broken HOT 1
- Tranceparency not working property with telescope dropdown HOT 3
- CmpBorder doesn't work HOT 2
- Bad highlighting in .gitignore files using tree-sitter HOT 6
- Support for Terminal Cursors HOT 1
- Failed to run `config` for catppuccin HOT 1
- add support for fzf-lua HOT 6
- Updating with vim-plug fails HOT 4
- Dependency Dashboard
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 nvim.