Skip to content

Commit

Permalink
feat: add new icons from nerd fonts v3.3.0 (#518)
Browse files Browse the repository at this point in the history
* feat: add various icons

Use some icons from new Nerd Fonts v3.3.0

- Include some config file for code formatters (clang, lua, python) and
other programs (nano, conda).
- Config file for pre-commit hooks
- Stylize README files
- Icons for some filetypes: Cmake, Anaconda, Python notebook, Typst,
Vala, LabView
- Move fish

* feat: add 3 new OS and one WM

- Leap, Nobara, Tumbleweed
- River

* feat: add office document filetypes

- Open Document Format for Office Applications (using LibreOffice icons)
- PowerPoint

---------

Co-authored-by: Alexander Courtis <[email protected]>
  • Loading branch information
hasecilu and alex-courtis authored Dec 7, 2024
1 parent 2141721 commit 87c34ab
Show file tree
Hide file tree
Showing 2 changed files with 356 additions and 32 deletions.
194 changes: 178 additions & 16 deletions lua/nvim-web-devicons/icons-default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,30 @@ local icons_by_filename = {
cterm_color = "113",
name = "Bashrc",
},
[".clang-format"] = {
icon = "",
color = "#6d8086",
cterm_color = "66",
name = "ClangConfig",
},
[".clang-tidy"] = {
icon = "",
color = "#6d8086",
cterm_color = "66",
name = "ClangConfig",
},
[".codespellrc"] = {
icon = "󰓆",
color = "#35DA60",
cterm_color = "41",
name = "Codespell",
},
[".condarc"] = {
icon = "",
color = "#43b02a",
cterm_color = "34",
name = "Conda",
},
[".dockerignore"] = {
icon = "󰡨",
color = "#458ee6",
Expand Down Expand Up @@ -107,6 +131,12 @@ local icons_by_filename = {
cterm_color = "66",
name = "Justfile",
},
[".luacheckrc"] = {
icon = "",
color = "#00a2ff",
cterm_color = "75",
name = "Luaurc",
},
[".luaurc"] = {
icon = "",
color = "#00a2ff",
Expand All @@ -119,6 +149,12 @@ local icons_by_filename = {
cterm_color = "196",
name = "Mailmap",
},
[".nanorc"] = {
icon = "",
color = "#440077",
cterm_color = "54",
name = "Nano",
},
[".npmignore"] = {
icon = "",
color = "#E8274B",
Expand All @@ -143,6 +179,12 @@ local icons_by_filename = {
cterm_color = "71",
name = "node",
},
[".pre-commit-config.yaml"] = {
icon = "󰛢",
color = "#F8B424",
cterm_color = "214",
name = "PreCommitConfig",
},
[".prettierrc"] = {
icon = "",
color = "#4285F4",
Expand Down Expand Up @@ -203,6 +245,12 @@ local icons_by_filename = {
cterm_color = "33",
name = "PrettierIgnore",
},
[".pylintrc"] = {
icon = "",
color = "#6d8086",
cterm_color = "66",
name = "PyLintConfig",
},
[".settings.json"] = {
icon = "",
color = "#854CC7",
Expand Down Expand Up @@ -324,9 +372,9 @@ local icons_by_filename = {
name = "Checkhealth",
},
["cmakelists.txt"] = {
icon = "",
color = "#6d8086",
cterm_color = "66",
icon = "",
color = "#dce3eb",
cterm_color = "254",
name = "CMakeLists",
},
["code_of_conduct"] = {
Expand Down Expand Up @@ -839,6 +887,18 @@ local icons_by_filename = {
cterm_color = "52",
name = "Rakefile",
},
["readme"] = {
icon = "󰂺",
color = "#ededed",
cterm_color = "255",
name = "Readme",
},
["readme.md"] = {
icon = "󰂺",
color = "#ededed",
cterm_color = "255",
name = "Readme",
},
["rmd"] = {
icon = "",
color = "#519aba",
Expand Down Expand Up @@ -1311,9 +1371,9 @@ local icons_by_file_extension = {
name = "ClojureDart",
},
["cmake"] = {
icon = "",
color = "#6d8086",
cterm_color = "66",
icon = "",
color = "#dce3eb",
cterm_color = "254",
name = "CMake",
},
["cob"] = {
Expand All @@ -1334,6 +1394,12 @@ local icons_by_file_extension = {
cterm_color = "185",
name = "Coffee",
},
["conda"] = {
icon = "",
color = "#43b02a",
cterm_color = "34",
name = "Conda",
},
["conf"] = {
icon = "",
color = "#6d8086",
Expand Down Expand Up @@ -1772,6 +1838,12 @@ local icons_by_file_extension = {
cterm_color = "43",
name = "Fdmdownload",
},
["fish"] = {
icon = "",
color = "#4d5a5e",
cterm_color = "240",
name = "Fish",
},
["flac"] = {
icon = "",
color = "#0075aa",
Expand All @@ -1796,11 +1868,29 @@ local icons_by_file_extension = {
cterm_color = "230",
name = "Fennel",
},
["fish"] = {
icon = "",
color = "#4d5a5e",
cterm_color = "240",
name = "Fish",
["fodg"] = {
icon = "",
color = "#FFFB57",
cterm_color = "227",
name = "LibreOfficeGraphics",
},
["fodp"] = {
icon = "",
color = "#FE9C45",
cterm_color = "215",
name = "LibreOfficeImpress",
},
["fods"] = {
icon = "",
color = "#78FC4E",
cterm_color = "119",
name = "LibreOfficeCalc",
},
["fodt"] = {
icon = "",
color = "#2DCBFD",
cterm_color = "81",
name = "LibreOfficeWriter",
},
["fs"] = {
icon = "",
Expand Down Expand Up @@ -2127,9 +2217,9 @@ local icons_by_file_extension = {
name = "Iso",
},
["ipynb"] = {
icon = "",
color = "#51a0cf",
cterm_color = "74",
icon = "",
color = "#f57d01",
cterm_color = "208",
name = "Notebook",
},
["java"] = {
Expand Down Expand Up @@ -2624,6 +2714,36 @@ local icons_by_file_extension = {
cterm_color = "102",
name = "3DObjectFile",
},
["odf"] = {
icon = "",
color = "#FF5A96",
cterm_color = "204",
name = "LibreOfficeFormula",
},
["odg"] = {
icon = "",
color = "#FFFB57",
cterm_color = "227",
name = "LibreOfficeGraphics",
},
["odp"] = {
icon = "",
color = "#FE9C45",
cterm_color = "215",
name = "LibreOfficeImpress",
},
["ods"] = {
icon = "",
color = "#78FC4E",
cterm_color = "119",
name = "LibreOfficeCalc",
},
["odt"] = {
icon = "",
color = "#2DCBFD",
cterm_color = "81",
name = "LibreOfficeWriter",
},
["ogg"] = {
icon = "",
color = "#0075aa",
Expand Down Expand Up @@ -2744,6 +2864,12 @@ local icons_by_file_extension = {
cterm_color = "160",
name = "Ppt",
},
["pptx"] = {
icon = "󰈧",
color = "#cb4a32",
cterm_color = "160",
name = "Pptx",
},
["prisma"] = {
icon = "",
color = "#5a67d8",
Expand Down Expand Up @@ -3380,6 +3506,12 @@ local icons_by_file_extension = {
cterm_color = "214",
name = "Txz",
},
["typ"] = {
icon = "",
color = "#0dbcc0",
cterm_color = "37",
name = "Typst",
},
["typoscript"] = {
icon = "",
color = "#FF8700",
Expand All @@ -3405,8 +3537,8 @@ local icons_by_file_extension = {
name = "Verilog",
},
["vala"] = {
icon = "",
color = "#7239b3",
icon = "",
color = "#7b3db9",
cterm_color = "91",
name = "Vala",
},
Expand All @@ -3428,6 +3560,12 @@ local icons_by_file_extension = {
cterm_color = "28",
name = "VHDL",
},
["vi"] = {
icon = "",
color = "#fec60a",
cterm_color = "220",
name = "LabView",
},
["vim"] = {
icon = "",
color = "#019833",
Expand Down Expand Up @@ -3815,6 +3953,12 @@ local icons_by_operating_system = {
cterm_color = "32",
name = "Kubuntu",
},
["leap"] = {
icon = "",
color = "#FBC75D",
cterm_color = "221",
name = "Leap",
},
["locos"] = {
icon = "",
color = "#fab402",
Expand Down Expand Up @@ -3857,6 +4001,12 @@ local icons_by_operating_system = {
cterm_color = "110",
name = "NixOS",
},
["nobara"] = {
icon = "",
color = "#ffffff",
cterm_color = "231",
name = "NobaraLinux",
},
["openbsd"] = {
icon = "",
color = "#f2ca30",
Expand Down Expand Up @@ -3953,6 +4103,12 @@ local icons_by_operating_system = {
cterm_color = "25",
name = "TrisquelGNULinux",
},
["tumbleweed"] = {
icon = "",
color = "#35B9AB",
cterm_color = "37",
name = "Tumbleweed",
},
["ubuntu"] = {
icon = "",
color = "#dd4814",
Expand Down Expand Up @@ -4091,6 +4247,12 @@ local icons_by_window_manager = {
cterm_color = "231",
name = "Qtile",
},
["river"] = {
icon = "",
color = "#000000",
cterm_color = "16",
name = "river",
},
["sway"] = {
icon = "",
color = "#68751c",
Expand Down
Loading

2 comments on commit 87c34ab

@GMbrianlaw
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it is just me, but some of the icons seem to be broken.

Image

For example, the pptx icon exists, but the typ icon is broken.

@alex-courtis
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That icon was added in nerd fonts 3.3.0

Please check if you're running that version.

Please sign in to comment.