I'm running Neovim (nvim) from Windows Terminal Powershell and recently installed a vim-devicons via vim-plug. I noticed that the icons are not displayed. In my configuration of Windows Terminal I'm using Cascadia Code PL a required font to display Oh-my-posh and posh-my-git, however even having apparently capable font neovim doesn't display it. However if I open nvim-qt it does work (perhaps it doesn't include its own terminal emulator). Is there any way to tweak config in neovim to properly display vim-devicons in windows terminal?
Here it is my profile.json:
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"fontFace": "Cascadia Code PL",
"fontSize": 9,
"useAcrylic": true,
"acrylicOpacity": 0.7,
"backgroundImage": "ms-appdata:///roaming/midnight_smuggler_1280x720.jpg",
"backgroundImageOpacity": 0.4,
"colorScheme": "cyberpunk",
"hidden": false
},
And my local nvim config:
"Plugin Section
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'ryanoasis/vim-devicons'
call plug#end()
"Config
set encoding=UTF-8
"set guifont=
let g:NERDTreeShowHidden = 1
let g:NERDTreeMinimalUI = 1
let g:NERDTreeIgnore = []
let g:NERDTreeStatusline = ''
" Automaticaly close nvim if NERDTree is only thing left open
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" Toggle
nnoremap <silent> <C-b> :NERDTreeToggle<CR>
Just figured that I was using a Cascadia Code PL that just have just enough glyphs for Oh-my-posh, just configured Delugia Nerd Font instead and Windows Terminal display icons.