2022-04-27 17:42:28 +02:00
|
|
|
|
local present, devicons = pcall(require, "nvim-web-devicons")
|
|
|
|
|
|
2021-07-17 13:14:52 +02:00
|
|
|
|
if not present then
|
2021-08-16 09:49:09 +02:00
|
|
|
|
return
|
2021-07-15 17:43:17 +02:00
|
|
|
|
end
|
2021-07-09 05:44:04 +02:00
|
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
|
local options = {
|
2021-08-16 09:49:09 +02:00
|
|
|
|
override = {
|
2021-08-19 20:58:42 +02:00
|
|
|
|
c = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "c",
|
|
|
|
|
},
|
2021-08-16 09:49:09 +02:00
|
|
|
|
css = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "css",
|
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
deb = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "deb",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
Dockerfile = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "Dockerfile",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
html = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "html",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
jpeg = {
|
2021-08-16 09:49:09 +02:00
|
|
|
|
icon = "",
|
2021-08-22 09:49:15 +02:00
|
|
|
|
name = "jpeg",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
|
|
|
|
jpg = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "jpg",
|
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
js = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "js",
|
|
|
|
|
},
|
|
|
|
|
kt = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "kt",
|
|
|
|
|
},
|
|
|
|
|
lock = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "lock",
|
|
|
|
|
},
|
|
|
|
|
lua = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "lua",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
|
|
|
|
mp3 = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "mp3",
|
|
|
|
|
},
|
|
|
|
|
mp4 = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "mp4",
|
|
|
|
|
},
|
|
|
|
|
out = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "out",
|
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
png = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "png",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
|
|
|
|
py = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "py",
|
|
|
|
|
},
|
2021-10-14 07:27:28 +02:00
|
|
|
|
["robots.txt"] = {
|
|
|
|
|
icon = "ﮧ",
|
|
|
|
|
name = "robots",
|
|
|
|
|
},
|
2021-08-16 09:49:09 +02:00
|
|
|
|
toml = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "toml",
|
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
ts = {
|
|
|
|
|
icon = "ﯤ",
|
|
|
|
|
name = "ts",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
2021-10-14 07:27:28 +02:00
|
|
|
|
ttf = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "TrueTypeFont",
|
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
rb = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "rb",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
|
|
|
|
rpm = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "rpm",
|
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
vue = {
|
|
|
|
|
icon = "﵂",
|
|
|
|
|
name = "vue",
|
|
|
|
|
},
|
2021-10-14 07:27:28 +02:00
|
|
|
|
woff = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "WebOpenFontFormat",
|
|
|
|
|
},
|
|
|
|
|
woff2 = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "WebOpenFontFormat2",
|
|
|
|
|
},
|
2021-08-22 09:49:15 +02:00
|
|
|
|
xz = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "xz",
|
|
|
|
|
},
|
|
|
|
|
zip = {
|
|
|
|
|
icon = "",
|
|
|
|
|
name = "zip",
|
2021-08-16 09:49:09 +02:00
|
|
|
|
},
|
2022-01-21 12:49:49 +01:00
|
|
|
|
},
|
2021-07-15 17:43:17 +02:00
|
|
|
|
}
|
2022-01-21 01:26:05 +01:00
|
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
|
-- check for any override
|
2022-04-28 00:11:36 +02:00
|
|
|
|
options = require("core.utils").load_override(options, "kyazdani42/nvim-web-devicons")
|
2022-01-21 01:26:05 +01:00
|
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
|
devicons.setup(options)
|