From 21bc73871945a6eb367f41da159a2e8dee074f18 Mon Sep 17 00:00:00 2001 From: tea Date: Wed, 8 May 2024 21:37:11 +0200 Subject: [PATCH] nvim: only activate nerdfonts if installed --- .config/nvim/lua/my/settings.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/my/settings.lua b/.config/nvim/lua/my/settings.lua index 2bae292..12bf3c5 100644 --- a/.config/nvim/lua/my/settings.lua +++ b/.config/nvim/lua/my/settings.lua @@ -53,4 +53,7 @@ vim.cmd('colorscheme amora') vim.api.nvim_set_hl(0, 'AmoraComment', { fg = '#7C4180', ctermfg = 61 }) vim.api.nvim_set_hl(0, 'AmoraCommentBold', { fg = '#7C4180', ctermfg = 61, bold = true }) -require('nvim-web-devicons').setup({}) + +if require('my.functions').nerdfont_installed() then + require('nvim-web-devicons').setup({}) +end