Skip to content

bug: ui.icons not showing in Lazy Manager windowΒ #1929

@echo-gravitas

Description

@echo-gravitas

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.4

Operating system/version

Arch Linux

Describe the bug

I started with nvim-lua/kickstart.nvim and now moved the plugins in lua/plugins/ filder. See https://github.com/nvim-lua/kickstart.nvim/blob/master/init.lua#L1002 for the icon settings. My init.lua now looks like this:

require('lazy').setup({
  {
    import = 'plugins',
  },
}, {
  ui = {
    icons = vim.g.have_nerd_font and {} or {
      cmd = '⌘',
      config = 'πŸ› ',
      event = 'πŸ“…',
      ft = 'πŸ“‚',
      init = 'βš™',
      keys = 'πŸ—',
      plugin = 'πŸ”Œ',
      runtime = 'πŸ’»',
      require = 'πŸŒ™',
      source = 'πŸ“„',
      start = 'πŸš€',
      task = 'πŸ“Œ',
      lazy = 'πŸ’€ ',
    },
  },
})

The plugins install and load success full. But the Icons I defined in ui.icons won't how up in Lazy Plugin Manager.

Steps To Reproduce

  1. Get the lua.init from https://github.com/nvim-lua/kickstart.nvim/blob/master/init.lua
  2. Start Neovim
  3. Open :Lazy -> You see the icons
  4. Close Neovim
  5. Change to my init.lua
  6. Start Neivom
  7. Open :Lazy -> You won't see the icons

Expected Behavior

The icons to show in Lazy Plaugin Manager.

Repro

local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'

if not (vim.uv or vim.loop).fs_stat(lazypath) then
  local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
  local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }

  if vim.v.shell_error ~= 0 then
    error('Error cloning lazy.nvim:\n' .. out)
  end
end
vim.opt.rtp:prepend(lazypath)

require('lazy').setup({
  {
    import = 'plugins',
  },
}, {
  ui = {
    icons = vim.g.have_nerd_font and {} or {
      cmd = '⌘',
      config = 'πŸ› ',
      event = 'πŸ“…',
      ft = 'πŸ“‚',
      init = 'βš™',
      keys = 'πŸ—',
      plugin = 'πŸ”Œ',
      runtime = 'πŸ’»',
      require = 'πŸŒ™',
      source = 'πŸ“„',
      start = 'πŸš€',
      task = 'πŸ“Œ',
      lazy = 'πŸ’€ ',
    },
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions