mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2026-05-14 08:23:48 +00:00
Switch from nvim-web-devicons to mini.icons
This commit is contained in:
parent
cfdc17be3a
commit
540884cef8
14
init.lua
14
init.lua
@ -340,13 +340,6 @@ do
|
|||||||
vim.pack.add { gh 'NMAC427/guess-indent.nvim' }
|
vim.pack.add { gh 'NMAC427/guess-indent.nvim' }
|
||||||
require('guess-indent').setup {}
|
require('guess-indent').setup {}
|
||||||
|
|
||||||
-- Because lua is a real programming language, you can also have some logic to your installation -
|
|
||||||
-- like only installing a plugin if a condition is met.
|
|
||||||
--
|
|
||||||
-- Here we only install `nvim-web-devicons` (which adds pretty icons) if we have a Nerd Font,
|
|
||||||
-- since otherwise the icons won't display properly.
|
|
||||||
if vim.g.have_nerd_font then vim.pack.add { gh 'nvim-tree/nvim-web-devicons' } end
|
|
||||||
|
|
||||||
-- Here is a more advanced configuration example that passes options to `gitsigns.nvim`
|
-- Here is a more advanced configuration example that passes options to `gitsigns.nvim`
|
||||||
--
|
--
|
||||||
-- See `:help gitsigns` to understand what each configuration key does.
|
-- See `:help gitsigns` to understand what each configuration key does.
|
||||||
@ -404,6 +397,13 @@ do
|
|||||||
-- A collection of various small independent plugins/modules
|
-- A collection of various small independent plugins/modules
|
||||||
vim.pack.add { gh 'nvim-mini/mini.nvim' }
|
vim.pack.add { gh 'nvim-mini/mini.nvim' }
|
||||||
|
|
||||||
|
-- If a nerd font is available, load the icons module for pretty icons in various plugins.
|
||||||
|
if vim.g.have_nerd_font then
|
||||||
|
require('mini.icons').setup()
|
||||||
|
-- Used for backwards compatibility with plugins that require `nvim-web-devicons` (e.g. telescope.nvim)
|
||||||
|
MiniIcons.mock_nvim_web_devicons()
|
||||||
|
end
|
||||||
|
|
||||||
-- Better Around/Inside textobjects
|
-- Better Around/Inside textobjects
|
||||||
--
|
--
|
||||||
-- Examples:
|
-- Examples:
|
||||||
|
|||||||
@ -1,18 +1,12 @@
|
|||||||
-- Neo-tree is a Neovim plugin to browse the file system
|
-- Neo-tree is a Neovim plugin to browse the file system
|
||||||
-- https://github.com/nvim-neo-tree/neo-tree.nvim
|
-- https://github.com/nvim-neo-tree/neo-tree.nvim
|
||||||
|
|
||||||
local plugins = {
|
vim.pack.add {
|
||||||
{ src = 'https://github.com/nvim-neo-tree/neo-tree.nvim', version = vim.version.range '*' },
|
{ src = 'https://github.com/nvim-neo-tree/neo-tree.nvim', version = vim.version.range '*' },
|
||||||
'https://github.com/nvim-lua/plenary.nvim',
|
'https://github.com/nvim-lua/plenary.nvim',
|
||||||
'https://github.com/MunifTanjim/nui.nvim',
|
'https://github.com/MunifTanjim/nui.nvim',
|
||||||
}
|
}
|
||||||
|
|
||||||
if vim.g.have_nerd_font then
|
|
||||||
table.insert(plugins, 'https://github.com/nvim-tree/nvim-web-devicons') -- not strictly required, but recommended
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.pack.add(plugins)
|
|
||||||
|
|
||||||
vim.keymap.set('n', '\\', '<Cmd>Neotree reveal<CR>', { desc = 'NeoTree reveal', silent = true })
|
vim.keymap.set('n', '\\', '<Cmd>Neotree reveal<CR>', { desc = 'NeoTree reveal', silent = true })
|
||||||
|
|
||||||
require('neo-tree').setup {
|
require('neo-tree').setup {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user