add: prettier icon

This commit is contained in:
asep.komarudin 2024-04-13 21:58:14 +07:00
parent 5018282996
commit aec3c632f0

View file

@ -7,6 +7,11 @@ local material_icon_ok, material_icon = pcall(require, "nvim-material-icon")
if not material_icon_ok then if not material_icon_ok then
return return
end end
local prettier_icon = ""
local term_program = vim.fn.getenv("TERM_PROGRAM")
if term_program == vim.NIL then
prettier_icon = ""
end
material_icon.setup({ material_icon.setup({
override = { override = {
["mjs"] = { ["mjs"] = {
@ -234,13 +239,13 @@ web_devicons.setup({
name = "huskyrc", name = "huskyrc",
}, },
[".prettierrc"] = { [".prettierrc"] = {
icon = "", icon = prettier_icon,
color = "#ea5e5e", color = "#ea5e5e",
cterm_color = "240", cterm_color = "240",
name = "prettierrc", name = "prettierrc",
}, },
[".prettierd"] = { [".prettierd"] = {
icon = "", icon = prettier_icon,
color = "#ea5e5e", color = "#ea5e5e",
cterm_color = "240", cterm_color = "240",
name = "prettierd", name = "prettierd",
@ -258,7 +263,7 @@ web_devicons.setup({
name = "vsixmanifest", name = "vsixmanifest",
}, },
[".prettierignore"] = { [".prettierignore"] = {
icon = "", icon = prettier_icon,
color = "#ea5e5e", color = "#ea5e5e",
cterm_color = "240", cterm_color = "240",
name = "prettierignore", name = "prettierignore",