Skip to content

Commit 3f94f5e

Browse files
committed
Switch from nvim-web-devicons to mini.icons
1 parent cfdc17b commit 3f94f5e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

init.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,6 @@ do
340340
vim.pack.add { gh 'NMAC427/guess-indent.nvim' }
341341
require('guess-indent').setup {}
342342

343-
-- Because lua is a real programming language, you can also have some logic to your installation -
344-
-- like only installing a plugin if a condition is met.
345-
--
346-
-- Here we only install `nvim-web-devicons` (which adds pretty icons) if we have a Nerd Font,
347-
-- since otherwise the icons won't display properly.
348-
if vim.g.have_nerd_font then vim.pack.add { gh 'nvim-tree/nvim-web-devicons' } end
349-
350343
-- Here is a more advanced configuration example that passes options to `gitsigns.nvim`
351344
--
352345
-- See `:help gitsigns` to understand what each configuration key does.
@@ -404,6 +397,13 @@ do
404397
-- A collection of various small independent plugins/modules
405398
vim.pack.add { gh 'nvim-mini/mini.nvim' }
406399

400+
-- If nerd font is available, load the icons module for pretty icons in various plugins.
401+
if vim.g.have_nerd_font then
402+
require('mini.icons').setup()
403+
-- Used for backwards compatibility with plugins that require `nvim-web-devicons` (e.g. telescope.nvim)
404+
MiniIcons.mock_nvim_web_devicons()
405+
end
406+
407407
-- Better Around/Inside textobjects
408408
--
409409
-- Examples:

0 commit comments

Comments
 (0)