mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
add: prettier icon
This commit is contained in:
parent
5018282996
commit
aec3c632f0
1 changed files with 8 additions and 3 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue