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