feat(icons): provide language specific icons in extras

This commit is contained in:
Michael Olson 2024-07-05 15:40:58 -04:00 committed by Folke Lemaitre
parent 09831414cf
commit 4a8bc0ae16
10 changed files with 127 additions and 1 deletions

View file

@ -41,4 +41,14 @@ return {
},
},
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
file = {
["docker-compose.yml"] = { glyph = "󰡨", hl = "MiniIconsBlue" },
},
},
},
}

View file

@ -19,4 +19,15 @@ return {
table.insert(opts.sources, { name = "git" })
end,
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
file = {
[".gitkeep"] = { glyph = "󰊢", hl = "MiniIconsGray" },
[".keep"] = { glyph = "󰊢", hl = "MiniIconsGray" },
},
},
},
}

View file

@ -137,4 +137,19 @@ return {
},
},
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
file = {
[".go-version"] = { glyph = "", hl = "MiniIconsBlue" },
},
filetype = {
gomod = { glyph = "", hl = "MiniIconsAzure" },
gosum = { glyph = "", hl = "MiniIconsCyan" },
gotmpl = { glyph = "󰟓", hl = "MiniIconsGray" },
},
},
},
}

View file

@ -31,4 +31,14 @@ return {
},
},
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
filetype = {
helm = { glyph = "󰠳", hl = "MiniIconsBlue" },
},
},
},
}

View file

@ -77,4 +77,14 @@ return {
},
},
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
filetype = {
tf = { glyph = "󱁢", hl = "MiniIconsBlue" },
},
},
},
}

View file

@ -248,4 +248,22 @@ return {
end
end,
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
file = {
[".eslintrc.js"] = { glyph = "󰱺", hl = "MiniIconsYellow" },
[".node-version"] = { glyph = "", hl = "MiniIconsGreen" },
[".prettierrc"] = { glyph = "", hl = "MiniIconsPurple" },
[".yarnrc.yml"] = { glyph = "", hl = "MiniIconsBlue" },
["eslint.config.js"] = { glyph = "󰱺", hl = "MiniIconsYellow" },
["package.json"] = { glyph = "", hl = "MiniIconsGreen" },
["tsconfig.json"] = { glyph = "", hl = "MiniIconsAzure" },
["tsconfig.build.json"] = { glyph = "", hl = "MiniIconsAzure" },
["yarn.lock"] = { glyph = "", hl = "MiniIconsBlue" },
},
},
},
}

View file

@ -88,4 +88,24 @@ return {
table.insert(opts.config.center, 5, projects)
end,
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
file = {
[".chezmoiignore"] = { glyph = "", hl = "MiniIconsGray" },
[".chezmoiremove"] = { glyph = "", hl = "MiniIconsGray" },
[".chezmoiroot"] = { glyph = "", hl = "MiniIconsGray" },
[".chezmoiversion"] = { glyph = "", hl = "MiniIconsGray" },
["bash.tmpl"] = { glyph = "", hl = "MiniIconsGray" },
["json.tmpl"] = { glyph = "", hl = "MiniIconsGray" },
["ps1.tmpl"] = { glyph = "󰨊", hl = "MiniIconsGray" },
["sh.tmpl"] = { glyph = "", hl = "MiniIconsGray" },
["toml.tmpl"] = { glyph = "", hl = "MiniIconsGray" },
["yaml.tmpl"] = { glyph = "", hl = "MiniIconsGray" },
["zsh.tmpl"] = { glyph = "", hl = "MiniIconsGray" },
},
},
},
}

View file

@ -60,4 +60,18 @@ return {
end
end,
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
extension = {
bash = { glyph = "", hl = "MiniIconsGray" },
zsh = { glyph = "", hl = "MiniIconsGray" },
},
filetype = {
dotenv = { glyph = "", hl = "MiniIconsYellow" },
},
},
},
}

View file

@ -22,4 +22,14 @@ return {
ensure_installed = { "http", "graphql" },
},
},
-- Filetype icons
{
"echasnovski/mini.icons",
opts = {
filetype = {
http = { glyph = "", hl = "MiniIconsRed" },
},
},
},
}

View file

@ -306,7 +306,15 @@ return {
{
"echasnovski/mini.icons",
lazy = true,
opts = {},
opts_extend = { "directory", "extension", "file", "filetype", "lsp", "os" },
opts = {
file = {
[".gitkeep"] = { glyph = "󰊢", hl = "MiniIconsGray" },
[".keep"] = { glyph = "󰊢", hl = "MiniIconsGray" },
["CODEOWNERS"] = { glyph = "", hl = "MiniIconsGreen" },
["devcontainer.json"] = { glyph = "", hl = "MiniIconsAzure" },
},
},
init = function()
package.preload["nvim-web-devicons"] = function()
require("mini.icons").mock_nvim_web_devicons()