Comments (10)
By default, startify isn't using nvim-web-devicons. Following the steps above, I see nothing happening in startify.
What else do I have to do to reproduce this issue?
from nvim-web-devicons.
PS: feel free to reference your issue to this one
from nvim-web-devicons.
are your sure this issue is realted to nvim-web-devicon and not vim-startify ? This plugin only provide a simple function, the rest is left to the plugin developers to implement.
from nvim-web-devicons.
@kyazdani42 I would think more a nvim-web-devicon question. vim-startify developer could argue its just a start-screen that can be used to open MRU or other important files. What can he do wrong in opening files? If there is an interest in fixing this then one of you will have to decide to debug a bit. @mhinz, any opinion? I think it is worthwhile as vim-startify & nvim-web-devicons are a good combination, and each worth using in its own right.
from nvim-web-devicons.
waiting for @mhinz before going on further investigation, i'm not sure why most plugins would work as expected using this lib but not vim-startify ? If this issue comes from nvim-web-devicon, i will fix it.
from nvim-web-devicons.
if vim-startify doesn't use nvim-web-devicons, how is this issue relevant ?
from nvim-web-devicons.
I have a mp4 video, and minimal example. It could most likely be a problem of nvim-bufferline.lua. Adding @akinsho. Am sorry I forgot there are 3 packages involved here. Please keep your eyes on the command I send to nvim, and the icon that gets show in the bufferline on top.
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
call plug#begin('~/.vim/plugged')
Plug 'mhinz/vim-startify'
Plug 'kyazdani42/nvim-web-devicons'
Plug 'akinsho/nvim-bufferline.lua'
call plug#end()
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
lua require'bufferline'.setup{}
lua <<EOF
require'nvim-web-devicons'.setup {
-- your personnal icons can go here (to override)
-- DevIcon will be appended to `name`
override = {
zsh = {
icon = "",
color = "#cb4b16",
name = "zsh",
},
vim = {
icon = "",
color = "#719e07",
name = "vim",
},
-- vimrc = {
-- icon = "",
-- color = "#719e07",
-- name = "vim",
-- },
lua = {
icon = "",
color = "#b58900",
name = "lua",
},
pdf = {
icon = "",
color = "#719e07",
name = "pdf",
},
tex = {
icon = "ﭨ",
color = "#dc322f",
name = "tex",
},
};
-- globally enable default icons (default to false)
-- will get overriden by `get_icons` option
default = true;
}
EOF
MP4 video:
As can be seen from the video, then the files are opened with path like :e ~/.zshrc
, buffer line does not show correct icons. I guess I associated it with Startify was because for some MRU entries hitting <CR>
on them would have used a full path like one above, and produced different result.
iconsbufferline.mp4
from nvim-web-devicons.
i think it's because you initialize nvim-web-devicons after bufferline which already have initialized it. Try to put your nvim-web-devicon setup before all other plugins initializations if you want changes to take effect properly.
from nvim-web-devicons.
@kyazdani42 I tried couple of refactorings, it didn't change anything. Can you please check if/how these lines need to be rearranged? Please post it too...
from nvim-web-devicons.
after looking at the video you sent, i'm completely sure this issue should be addressed to bufferline. I'm closing this because it's out of the scope of this library.
from nvim-web-devicons.
Related Issues (20)
- Create a category for icons from desktop environments and window managers HOT 2
- Cannot override some icons by filename HOT 7
- TeX icon incorrect HOT 1
- [QUESTION]: how to add custom icon to laravel blade files HOT 4
- Invalid highlight name HOT 15
- change only icon color HOT 1
- W18 invalid character in a group name HOT 2
- Default icon is not working correctly HOT 12
- FR: differentiate `.d.ts` from `.ts` files (typescript) HOT 3
- Add known issue to README
- Custom icons not working on latest nvim nightly HOT 7
- Gulpfile and Gruntfile incorrect icon HOT 12
- Add issue template HOT 6
- Cannot override Lua icon color HOT 9
- Add gleam icon HOT 2
- Feature: Allow setup to be run multiple times
- set_icon not work HOT 3
- Cannot install nvim-web-devicons properly on Nvim 0.7.2 HOT 2
- feat: Allow overrides by patterns HOT 1
- Make files in `diagnostics` use `TroubleFileName` color HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-web-devicons.