bug: ui.icons not showing in Lazy Manager window #1931
-
Did you check docs and existing issues?
Neovim version (nvim -v)0.10.4 Operating system/versionArch Linux Describe the bugI 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
Expected BehaviorThe icons to show in Lazy Plaugin Manager. Reprolocal 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 = '💤 ',
},
},
}) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Meanwhile I was able to find the (user-) error. I just had to remove the |
Beta Was this translation helpful? Give feedback.
Meanwhile I was able to find the (user-) error. I just had to remove the
vim.g.have_nerd_font and {} or
part at theicons
declaration to get the icons showing up.