Giter Club home page Giter Club logo

Comments (10)

mhinz avatar mhinz commented on July 20, 2024 1

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.

kyazdani42 avatar kyazdani42 commented on July 20, 2024 1

PS: feel free to reference your issue to this one

from nvim-web-devicons.

kyazdani42 avatar kyazdani42 commented on July 20, 2024

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.

poetaman avatar poetaman commented on July 20, 2024

@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.

kyazdani42 avatar kyazdani42 commented on July 20, 2024

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.

kyazdani42 avatar kyazdani42 commented on July 20, 2024

if vim-startify doesn't use nvim-web-devicons, how is this issue relevant ?

from nvim-web-devicons.

poetaman avatar poetaman commented on July 20, 2024

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.

kyazdani42 avatar kyazdani42 commented on July 20, 2024

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.

poetaman avatar poetaman commented on July 20, 2024

@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.

kyazdani42 avatar kyazdani42 commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.