nvim-config/lua/configs/icons.lua

192 lines
3.0 KiB
Lua
Raw Normal View History

2022-02-28 03:11:17 +00:00
local M = {}
function M.config()
2023-01-10 18:21:09 +00:00
local status_ok, icons = pcall(require, 'nvim-web-devicons')
if not status_ok then
return
end
2022-02-28 03:11:17 +00:00
local colors = {
2023-01-10 18:21:09 +00:00
c = '#519aba',
css = '#61afef',
deb = '#a1b7ee',
docker = '#384d54',
html = '#de8c92',
js = '#ebcb8b',
kt = '#7bc99c',
lock = '#c4c720',
lua = '#51a0cf',
mp3 = '#d39ede',
mp4 = '#9ea3de',
out = '#abb2bf',
py = '#a3b8ef',
robot = '#abb2bf',
toml = '#39bf39',
ts = '#519aba',
ttf = '#abb2bf',
rb = '#ff75a0',
rpm = '#fca2aa',
woff = '#abb2bf',
woff2 = '#abb2bf',
zip = '#f9d71c',
jsx = '#519ab8',
vue = '#7bc99c',
rs = '#dea584',
png = '#c882e7',
jpeg = '#c882e7',
jpg = '#c882e7',
}
2022-02-28 03:11:17 +00:00
2023-01-10 18:21:09 +00:00
icons.setup({
2022-02-28 05:45:40 +00:00
override = {
c = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.c,
2023-01-10 18:21:09 +00:00
name = 'c',
2022-02-28 05:45:40 +00:00
},
css = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.css,
2023-01-10 18:21:09 +00:00
name = 'css',
2022-02-28 05:45:40 +00:00
},
deb = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.deb,
2023-01-10 18:21:09 +00:00
name = 'deb',
2022-02-28 05:45:40 +00:00
},
Dockerfile = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.docker,
2023-01-10 18:21:09 +00:00
name = 'Dockerfile',
2022-02-28 05:45:40 +00:00
},
html = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.html,
2023-01-10 18:21:09 +00:00
name = 'html',
2022-02-28 05:45:40 +00:00
},
js = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.js,
2023-01-10 18:21:09 +00:00
name = 'js',
2022-02-28 05:45:40 +00:00
},
kt = {
2023-01-10 18:21:09 +00:00
icon = '󱈙',
2022-02-28 05:45:40 +00:00
color = colors.kt,
2023-01-10 18:21:09 +00:00
name = 'kt',
2022-02-28 05:45:40 +00:00
},
lock = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.lock,
2023-01-10 18:21:09 +00:00
name = 'lock',
2022-02-28 05:45:40 +00:00
},
lua = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.lua,
2023-01-10 18:21:09 +00:00
name = 'lua',
2022-02-28 05:45:40 +00:00
},
mp3 = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.mp3,
2023-01-10 18:21:09 +00:00
name = 'mp3',
2022-02-28 05:45:40 +00:00
},
mp4 = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.mp4,
2023-01-10 18:21:09 +00:00
name = 'mp4',
2022-02-28 05:45:40 +00:00
},
out = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.out,
2023-01-10 18:21:09 +00:00
name = 'out',
2022-02-28 05:45:40 +00:00
},
py = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.py,
2023-01-10 18:21:09 +00:00
name = 'py',
2022-02-28 05:45:40 +00:00
},
2023-01-10 18:21:09 +00:00
['robots.txt'] = {
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.robot,
2023-01-10 18:21:09 +00:00
name = 'robots',
2022-02-28 05:45:40 +00:00
},
toml = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.toml,
2023-01-10 18:21:09 +00:00
name = 'toml',
2022-02-28 05:45:40 +00:00
},
ts = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.ts,
2023-01-10 18:21:09 +00:00
name = 'ts',
2022-02-28 05:45:40 +00:00
},
ttf = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.ttf,
2023-01-10 18:21:09 +00:00
name = 'TrueTypeFont',
2022-02-28 05:45:40 +00:00
},
rb = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.rb,
2023-01-10 18:21:09 +00:00
name = 'rb',
2022-02-28 05:45:40 +00:00
},
rpm = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.rpm,
2023-01-10 18:21:09 +00:00
name = 'rpm',
2022-02-28 05:45:40 +00:00
},
vue = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.vue,
2023-01-10 18:21:09 +00:00
name = 'vue',
2022-02-28 05:45:40 +00:00
},
woff = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.woff,
2023-01-10 18:21:09 +00:00
name = 'WebOpenFontFormat',
2022-02-28 05:45:40 +00:00
},
woff2 = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.woff2,
2023-01-10 18:21:09 +00:00
name = 'WebOpenFontFormat2',
2022-02-28 05:45:40 +00:00
},
xz = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.zip,
2023-01-10 18:21:09 +00:00
name = 'xz',
2022-02-28 05:45:40 +00:00
},
zip = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.zip,
2023-01-10 18:21:09 +00:00
name = 'zip',
2022-02-28 05:45:40 +00:00
},
jsx = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.jsx,
2023-01-10 18:21:09 +00:00
name = 'jsx',
2022-02-28 05:45:40 +00:00
},
rust = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.rs,
2023-01-10 18:21:09 +00:00
name = 'rs',
2022-02-28 05:45:40 +00:00
},
jpg = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.jpg,
2023-01-10 18:21:09 +00:00
name = 'jpg',
2022-02-28 05:45:40 +00:00
},
png = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.png,
2023-01-10 18:21:09 +00:00
name = 'png',
2022-02-28 05:45:40 +00:00
},
jpeg = {
2023-01-10 18:21:09 +00:00
icon = '',
2022-02-28 05:45:40 +00:00
color = colors.jpeg,
2023-01-10 18:21:09 +00:00
name = 'jpeg',
2022-02-28 05:45:40 +00:00
},
2023-01-10 18:21:09 +00:00
},
})
2022-02-28 03:11:17 +00:00
end
return M