From aec3c632f0bf73554eaf0010f19a206e9d42f7c5 Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Sat, 13 Apr 2024 21:58:14 +0700 Subject: [PATCH] add: prettier icon --- lua/user/webdevicons.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lua/user/webdevicons.lua b/lua/user/webdevicons.lua index 7f356e1..0c36448 100644 --- a/lua/user/webdevicons.lua +++ b/lua/user/webdevicons.lua @@ -7,6 +7,11 @@ local material_icon_ok, material_icon = pcall(require, "nvim-material-icon") if not material_icon_ok then return end +local prettier_icon = "" +local term_program = vim.fn.getenv("TERM_PROGRAM") +if term_program == vim.NIL then + prettier_icon = "" +end material_icon.setup({ override = { ["mjs"] = { @@ -234,13 +239,13 @@ web_devicons.setup({ name = "huskyrc", }, [".prettierrc"] = { - icon = "", + icon = prettier_icon, color = "#ea5e5e", cterm_color = "240", name = "prettierrc", }, [".prettierd"] = { - icon = "", + icon = prettier_icon, color = "#ea5e5e", cterm_color = "240", name = "prettierd", @@ -258,7 +263,7 @@ web_devicons.setup({ name = "vsixmanifest", }, [".prettierignore"] = { - icon = "", + icon = prettier_icon, color = "#ea5e5e", cterm_color = "240", name = "prettierignore",