ryanoasis / vim-devicons

Adds file type icons to Vim plugins such as: NERDTree, vim-airline, CtrlP, unite, Denite, lightline, vim-startify and many more
MIT License
5.63k stars 265 forks source link

add symbol for noeol #462

Open shiluotang opened 2 weeks ago

shiluotang commented 2 weeks ago

only show this symbol when g:WebDevIconsNoEndOfLineDefaultSymbol is configured

Requirements (please check off with 'x')

What does this Pull Request (PR) do?

show symbol for noeol status as the airline [!EOL]

How should this be manually tested?

when g:WebDevIconsNoEndOfLineDefaultSymbol is default configured

  1. open a simple file in vim
  2. change eof status by vim command ":set noendofline"
  3. there should be no symbol for noeof on airline fileformat part

when g:WebDevIconsNoEndOfLineDefaultSymbol is configured by user

buffer verify

  1. set g:WebDevIconsNoEndOfLineDefaultSymbol in vimrc
  2. open a simple file in vim
  3. change eof status by vim command ":set noendofline"
  4. airline fileformat part should contain the value of "g:WebDevIconsNoEndOfLineDefaultSymbol"

file verify

  1. set g:WebDevIconsNoEndOfLineDefaultSymbol in vimrc
  2. create a simple file: echo "hello" > abc
  3. open file in binary mode: vim -b abc
  4. call vim command ":set noendofline", then save and exit
  5. open file in normal mode: vim abc
  6. airline fileformat part should contain the value of "g:WebDevIconsNoEndOfLineDefaultSymbol"

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

Untitled