joshdick / onedark.vim

A dark Vim/Neovim color scheme inspired by Atom's One Dark syntax theme.
MIT License
3.89k stars 533 forks source link

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

Open mnpqraven opened 2 years ago

mnpqraven commented 2 years ago

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

actual behavior/replication

joshdick commented 2 years ago

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.