Closed airtonix closed 1 year ago
read the error message? You specify a plugin with two different names
"kyazdani42/nvim-web-devicons" "nvim-tree/nvim-web-devicons"
Sorry i'm a vim noob.
this detail isn't obvious to new comers, and this never happened with packer.
I would expect that these are two different plugins:
"kyazdani42/nvim-web-devicons"
"nvim-tree/nvim-web-devicons"
the plugin got renamed at some point.
It didnt happen with Packer, because Packer didnt check for this. Lazy does and correctlt shows an error message with the exact reason why this can not be merged
I got the same problem in "nvim-lualine/lualine.nvim" plugin configuration, and fixed it by changing "kyazdani42/nvim-web-devicons" to "nvim-tree/nvim-web-devicons", since they are the same repository.
Describe the bug related to #53
When i drop in
~/.config/nvim/lua/plugins/ui_icons.lua
:I get this error on startup:
Which version of Neovim are you using?
Terminal only.
To Reproduce Make sure to read https://github.com/folke/lazy.nvim/wiki/Minimal-%60init.lua%60-to-Reproduce-an-Issue
Steps to reproduce the behavior:
Expected Behavior
be more forgiving about duplicate dependencies:
Screenshots If applicable, add screenshots to help explain your problem.
repro.lua
```lua local root = vim.fn.fnamemodify("./.repro", ":p") -- set stdpaths to use .repro for _, name in ipairs({ "config", "data", "state", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end -- bootstrap lazy local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "--single-branch", "https://github.com/folke/lazy.nvim.git", lazypath, }) end vim.opt.runtimepath:prepend(lazypath) -- install plugins local plugins = { -- do not remove the colorscheme! "folke/tokyonight.nvim", -- add any other pugins here { -- File Tree "nvim-neo-tree/neo-tree.nvim", dependencies = { "nvim-lua/plenary.nvim", "MunifTanjim/nui.nvim", 'nvim-tree/nvim-web-devicons', }, keys = { { 'Log Please include any related errors from the Noice log file. (open with
:Lazy log
)Lazy log