From 6e355632387a085f15a66ad68cf681c1d7374a04 Mon Sep 17 00:00:00 2001 From: Ulices Date: Tue, 9 Apr 2024 11:36:06 -0600 Subject: [PATCH] fix: remove dashes and underscores that seems to generate errors (#441) --- CONTRIBUTING.md | 1 + lua/nvim-web-devicons/icons-default.lua | 10 +++++----- lua/nvim-web-devicons/icons-light.lua | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 235cf2e..a9cf5c9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,6 +68,7 @@ ___Key/value pairs must appear in the same exact order!___ - `color` must contain a color in the html notation - `cterm_color` must be below `color`, and it must contain a number (any number) - the correct value for `cterm_color` will be generated by the script +- `name` must only contain alphanumeric characters (don't use `/`, `-`, `_`) Ensure your current working directory is the repo root. Run `make`. This will: diff --git a/lua/nvim-web-devicons/icons-default.lua b/lua/nvim-web-devicons/icons-default.lua index 614a6c2..3612db1 100644 --- a/lua/nvim-web-devicons/icons-default.lua +++ b/lua/nvim-web-devicons/icons-default.lua @@ -417,7 +417,7 @@ local icons_by_filename = { icon = "", color = "#83b8f2", cterm_color = "110", - name = "Kdenlive-layoutsrc", + name = "KdenliveLayoutsrc", }, ["kdenliverc"] = { icon = "", @@ -2991,7 +2991,7 @@ local icons_by_operating_system = { icon = "", color = "#c0c0c0", cterm_color = "250", - name = "Hyperbola_GNU-Linux_libre", + name = "HyperbolaGNULinuxLibre", }, ["illumos"] = { icon = "", @@ -3021,7 +3021,7 @@ local icons_by_operating_system = { icon = "", color = "#fab402", cterm_color = "214", - name = "Loc-OS", + name = "LocOS", }, ["lxle"] = { icon = "", @@ -3075,7 +3075,7 @@ local icons_by_operating_system = { icon = "", color = "#797dac", cterm_color = "103", - name = "Parabola_GNU-Linux_libre", + name = "ParabolaGNULinuxLibre", }, ["parrot"] = { icon = "", @@ -3153,7 +3153,7 @@ local icons_by_operating_system = { icon = "", color = "#0f58b6", cterm_color = "25", - name = "Trisquel_GNU-Linux", + name = "TrisquelGNULinux", }, ["ubuntu"] = { icon = "", diff --git a/lua/nvim-web-devicons/icons-light.lua b/lua/nvim-web-devicons/icons-light.lua index c129b80..4920374 100644 --- a/lua/nvim-web-devicons/icons-light.lua +++ b/lua/nvim-web-devicons/icons-light.lua @@ -417,7 +417,7 @@ local icons_by_filename = { icon = "", color = "#425c79", cterm_color = "24", - name = "Kdenlive-layoutsrc", + name = "KdenliveLayoutsrc", }, ["kdenliverc"] = { icon = "", @@ -2991,7 +2991,7 @@ local icons_by_operating_system = { icon = "", color = "#404040", cterm_color = "238", - name = "Hyperbola_GNU-Linux_libre", + name = "HyperbolaGNULinuxLibre", }, ["illumos"] = { icon = "", @@ -3021,7 +3021,7 @@ local icons_by_operating_system = { icon = "", color = "#7d5a01", cterm_color = "94", - name = "Loc-OS", + name = "LocOS", }, ["lxle"] = { icon = "", @@ -3075,7 +3075,7 @@ local icons_by_operating_system = { icon = "", color = "#515373", cterm_color = "60", - name = "Parabola_GNU-Linux_libre", + name = "ParabolaGNULinuxLibre", }, ["parrot"] = { icon = "", @@ -3153,7 +3153,7 @@ local icons_by_operating_system = { icon = "", color = "#0f58b6", cterm_color = "25", - name = "Trisquel_GNU-Linux", + name = "TrisquelGNULinux", }, ["ubuntu"] = { icon = "",