catppuccin / nvim

🍨 Soothing pastel theme for (Neo)vim
MIT License
5.68k stars 256 forks source link

Airline is not displaying correctly #441

Closed Aniamon closed 1 year ago

Aniamon commented 1 year ago

Description

2023-03-27_06-37

Colorscheme is not applied correctly when using vim-airline with powerline fonts on

Neovim version

NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Terminal and multiplexer

alacritty 0.12.0

Catppuccin version / branch / rev

catppuccin 1.1.0

Steps to reproduce

nvim -u repro.lua

Expected behavior

Colorscheme should apply correctly

Actual behavior

It doesn't

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "catppuccin/nvim",
  "vim-airline/vim-airline",
}

vim.g.airline_powerline_fonts = 1
vim.g.airline_theme = "catppuccin"

require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("catppuccin")
nullchilly commented 1 year ago

https://github.com/vim-airline/vim-airline/issues/2467

Seems like an alacritty issue.

Aniamon commented 1 year ago

vim-airline/vim-airline#2467

Seems like an alacritty issue.

The same occurs with kitty and konsole.

nullchilly commented 1 year ago

Can you elaborate the expected behavior, I'm not sure what's wrong?

Aniamon commented 1 year ago

The characters at the right are not using the colorscheme.

nullchilly commented 1 year ago

Ah got it, I added the error section:

image