File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
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:
You can’t perform that action at this time.
0 commit comments