mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(icons): provide language specific icons in extras
This commit is contained in:
parent
09831414cf
commit
4a8bc0ae16
10 changed files with 127 additions and 1 deletions
|
|
@ -41,4 +41,14 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Filetype icons
|
||||
{
|
||||
"echasnovski/mini.icons",
|
||||
opts = {
|
||||
file = {
|
||||
["docker-compose.yml"] = { glyph = "", hl = "MiniIconsBlue" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,4 +31,14 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Filetype icons
|
||||
{
|
||||
"echasnovski/mini.icons",
|
||||
opts = {
|
||||
filetype = {
|
||||
helm = { glyph = "", hl = "MiniIconsBlue" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,4 +77,14 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Filetype icons
|
||||
{
|
||||
"echasnovski/mini.icons",
|
||||
opts = {
|
||||
filetype = {
|
||||
tf = { glyph = "", hl = "MiniIconsBlue" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,4 +22,14 @@ return {
|
|||
ensure_installed = { "http", "graphql" },
|
||||
},
|
||||
},
|
||||
|
||||
-- Filetype icons
|
||||
{
|
||||
"echasnovski/mini.icons",
|
||||
opts = {
|
||||
filetype = {
|
||||
http = { glyph = "", hl = "MiniIconsRed" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue