diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2024-03-06 19:44:10 +0100 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2024-03-06 19:44:10 +0100 |
commit | 56942efafbbeafbfe77f8234acd1eefc55b4e322 (patch) | |
tree | 0f064bc7ad529e8956b7567b568642eef12326de /lua/kickstart | |
parent | 586bdec3b9d03795cdf9dc30dc25401994a100d4 (diff) | |
parent | 66e2a5a425a4f3b2e4f9456d82b29718c24a8993 (diff) |
Merge 'upstream/master' Make the Nerd Font an optional requirement
Diffstat (limited to 'lua/kickstart')
-rw-r--r-- | lua/kickstart/plugins/mini.lua | 3 | ||||
-rw-r--r-- | lua/kickstart/plugins/telescope.lua | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lua/kickstart/plugins/mini.lua b/lua/kickstart/plugins/mini.lua index 94de556..3e924a8 100644 --- a/lua/kickstart/plugins/mini.lua +++ b/lua/kickstart/plugins/mini.lua @@ -21,7 +21,8 @@ return { -- You could remove this setup call if you don't like it, -- and try some other statusline plugin local statusline = require 'mini.statusline' - statusline.setup() + -- set use_icons to true if you have a Nerd Font + statusline.setup { use_icons = vim.g.have_nerd_font } -- You can configure sections in the statusline by overriding their -- default behavior. For example, here we set the section for diff --git a/lua/kickstart/plugins/telescope.lua b/lua/kickstart/plugins/telescope.lua index f73e12d..a88b52b 100644 --- a/lua/kickstart/plugins/telescope.lua +++ b/lua/kickstart/plugins/telescope.lua @@ -27,10 +27,8 @@ return { }, { 'nvim-telescope/telescope-ui-select.nvim' }, - -- Useful for getting pretty icons, but requires special font. - -- If you already have a Nerd Font, or terminal set up with fallback fonts - -- you can enable this - -- { 'nvim-tree/nvim-web-devicons' } + -- Useful for getting pretty icons, but requires a Nerd Font. + { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, }, config = function() -- Telescope is a fuzzy finder that comes with a lot of different things that |