neovim-config/lua/plugins/configs/icons.lua

159 lines
3.1 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local present, icons = pcall(require, "nvim-web-devicons")
if not present then
return
end
local M = {}
local colors = require("colors").get()
local chad_defaults = {
override = {
c = {
icon = "",
color = colors.blue,
name = "c",
},
css = {
icon = "",
color = colors.blue,
name = "css",
},
deb = {
icon = "",
color = colors.cyan,
name = "deb",
},
Dockerfile = {
icon = "",
color = colors.cyan,
name = "Dockerfile",
},
html = {
icon = "",
color = colors.baby_pink,
name = "html",
},
jpeg = {
icon = "",
color = colors.dark_purple,
name = "jpeg",
},
jpg = {
icon = "",
color = colors.dark_purple,
name = "jpg",
},
js = {
icon = "",
color = colors.sun,
name = "js",
},
kt = {
icon = "󱈙",
color = colors.orange,
name = "kt",
},
lock = {
icon = "",
color = colors.red,
name = "lock",
},
lua = {
icon = "",
color = colors.blue,
name = "lua",
},
mp3 = {
icon = "",
color = colors.white,
name = "mp3",
},
mp4 = {
icon = "",
color = colors.white,
name = "mp4",
},
out = {
icon = "",
color = colors.white,
name = "out",
},
png = {
icon = "",
color = colors.dark_purple,
name = "png",
},
py = {
icon = "",
color = colors.cyan,
name = "py",
},
["robots.txt"] = {
icon = "",
color = colors.red,
name = "robots",
},
toml = {
icon = "",
color = colors.blue,
name = "toml",
},
ts = {
icon = "",
color = colors.teal,
name = "ts",
},
ttf = {
icon = "",
color = colors.white,
name = "TrueTypeFont",
},
rb = {
icon = "",
color = colors.pink,
name = "rb",
},
rpm = {
icon = "",
color = colors.orange,
name = "rpm",
},
vue = {
icon = "",
color = colors.vibrant_green,
name = "vue",
},
woff = {
icon = "",
color = colors.white,
name = "WebOpenFontFormat",
},
woff2 = {
icon = "",
color = colors.white,
name = "WebOpenFontFormat2",
},
xz = {
icon = "",
color = colors.sun,
name = "xz",
},
zip = {
icon = "",
color = colors.sun,
name = "zip",
},
}
}
M.setup = function(override_flag)
if override_flag then
chad_defaults = require("core.utils").tbl_override_req("nvim_web_devicons", chad_defaults)
end
icons.setup(chad_defaults)
end
return M