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

Add ability to use nerdfont.vim plugin to display devicons #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

theunraveler
Copy link

Hello! First, thanks for developing this useful plugin.

I am already using the nerdfont.vim plugin to display dev icons in the fern.vim file browser. I thought it was a bit redundant to install vim-devicons also, so I changed vim-buffet to use either plugin.

The change in this PR should be completely transparent to users of this plugin. The g:buffet_use_devicons setting should continue to function exactly how it currently does, and if you're using vim-devicons, this plugin will still continue to pick that up by default.

Oh also note that a consequence of this change is that the vim-devicons plugin no longer needs to be registered before vim-buffet, since the function for generating devicons is lazily-loaded. So I updated that in the README too.

Thanks!

@krisfans
Copy link

krisfans commented Feb 9, 2022

It doesn't seem to work on my computer.
my vimrc is

if &compatible
  set nocompatible               " Be iMproved
endif

" Disable Vim's native pack feature
set packpath=

set laststatus=2       " 显示 status line
set showtabline=2      " 显示 tabs line

let g:buffet_show_index = 1
let g:buffet_powerline_separators = 1
let g:buffet_use_devicons = 1
set runtimepath+=~/.cache/vim/dein/repos/github.com/lambdalisue/nerdfont.vim
set runtimepath+=~/.cache/vim/dein/repos/github.com/theunraveler/vim-buffet_nerdfont
filetype plugin indent on
syntax enable
set termguicolors


    " Note: Make sure the function is defined before `vim-buffet` is loaded.
    function! g:BuffetSetCustomColors()
        " hi! BuffetTab cterm=NONE ctermbg=117 ctermfg=238 guibg=#8ac6f2 guifg=#444444
        " hi! BuffetCurrentBuffer cterm=NONE ctermbg=119 ctermfg=8 guibg=#95e454 guifg=#000000
        hi! BuffetTab cterm=NONE ctermbg=117 ctermfg=238 guibg=#a89984 guifg=#282828
        hi! BuffetCurrentBuffer cterm=NONE ctermbg=119 ctermfg=8 guibg=#b8bb26 guifg=#282828
    endfunction

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

Successfully merging this pull request may close these issues.

None yet

2 participants