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

Weird behavior with modified file name's color in airline by opening .vim files #306

Open
2 tasks done
mnpqraven opened this issue Jul 5, 2022 · 1 comment
Open
2 tasks done

Comments

@mnpqraven
Copy link

mnpqraven commented Jul 5, 2022

Terminal Emulator Info

Terminal emulator(s) and their version(s) used, if applicable: alacritty 0.10.1

nvim --version

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

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

minimal .vimrc

call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'joshdick/onedark.vim'
call plug#end()
filetype plugin indent on

set completeopt=menuone,menu
let g:airline_theme='onedark'

Issue Description

I've encountered weird behaviors with how the color of the file name in Airline is changed depending on if the file being opened is a .vim file or not

expected behavior

  • open any file, change the file's content
    • filename turns to yellow
      https://imgur.com/vMKLtaG.png

actual behavior/replication

  • open any .vim file, change the content
    • filename turns to yellow (as expected)
  • open any file that's not .vim, change the content
    • filename's color doesn't change
    • :AirlineRefresh doesn't have any effect until i open a vim file with :e anyname.vim and :AirlineRefresh. Then do i get the correct modified filename's color for every files
      https://imgur.com/KP7K2To.png
  • open any .vim file, then open any non .vim file (:e name.sh), change either content
    • modified non .vim file changes color
  • open any non .vim file, change the content
    • modified non .vim file doesn't changes color
@joshdick
Copy link
Owner

Have you had this issue with any other colorschemes?

onedark.vim has no special interaction with airline aside from setting global variables for its theme colors (nothing conditional based on file extensions, etc...), so I can't tell whether the issue is a onedark.vim issue or an airline one.

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

2 participants