2023-02-27 08:18:09 +07:00
|
|
|
local web_devicons_ok, web_devicons = pcall(require, "nvim-web-devicons")
|
|
|
|
if not web_devicons_ok then
|
2023-01-15 00:17:41 +07:00
|
|
|
return
|
|
|
|
end
|
2023-02-27 08:18:09 +07:00
|
|
|
|
|
|
|
local material_icon_ok, material_icon = pcall(require, "nvim-material-icon")
|
|
|
|
if not material_icon_ok then
|
|
|
|
return
|
|
|
|
end
|
2023-03-01 22:16:37 +07:00
|
|
|
material_icon.setup({
|
|
|
|
override = {
|
|
|
|
["mjs"] = {
|
|
|
|
icon = "",
|
|
|
|
color = "#efd81d",
|
|
|
|
cterm_color = "220",
|
|
|
|
name = "Mjs",
|
|
|
|
},
|
2023-06-15 07:25:49 +07:00
|
|
|
["ts"] = {
|
|
|
|
icon = "",
|
|
|
|
color = "#30A2FF",
|
|
|
|
cterm_color = "220",
|
|
|
|
name = "ts",
|
|
|
|
},
|
2023-09-09 14:12:11 +07:00
|
|
|
["jsx"] = {
|
|
|
|
icon = "",
|
|
|
|
color = "#0FBFCF",
|
|
|
|
cterm_color = "220",
|
|
|
|
name = "jsx",
|
|
|
|
},
|
|
|
|
["svg"] = {
|
|
|
|
icon = "",
|
|
|
|
color = "#FDB03A",
|
|
|
|
cterm_color = "220",
|
|
|
|
name = "svg",
|
|
|
|
},
|
2023-03-01 22:16:37 +07:00
|
|
|
},
|
|
|
|
color_icons = true,
|
|
|
|
default = true,
|
|
|
|
})
|
2023-02-27 08:18:09 +07:00
|
|
|
|
|
|
|
web_devicons.setup({
|
|
|
|
override = material_icon.get_icons(),
|
2023-12-01 16:58:43 +07:00
|
|
|
override_by_filename = {
|
|
|
|
[".prettierrc"] = {
|
|
|
|
icon = "",
|
|
|
|
color = "#ea5e5e",
|
|
|
|
cterm_color = "167",
|
|
|
|
name = "prettierrc",
|
|
|
|
},
|
|
|
|
[".prettierignore"] = {
|
|
|
|
icon = "",
|
|
|
|
color = "#ea5e5e",
|
|
|
|
cterm_color = "167",
|
|
|
|
name = "prettierignore",
|
|
|
|
},
|
|
|
|
},
|
2023-02-27 08:18:09 +07:00
|
|
|
})
|