Skip to content

Commit

Permalink
no stylua for generated icons
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-courtis committed Mar 17, 2024
1 parent c5f57b5 commit 1ba5bb9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
with:
neovim: true

- run: luarocks install inspect 3.1.3

- name: make colors-check
run: |
luarocks install inspect 3.1.3
make colors-check
run: make colors-check

2 changes: 2 additions & 0 deletions lua/nvim-web-devicons/icons-default.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- stylua: ignore start

local M = {}

M.icons_by_filename = {
Expand Down
2 changes: 2 additions & 0 deletions lua/nvim-web-devicons/icons-light.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- stylua: ignore start

local M = {}

M.icons_by_filename = {
Expand Down
1 change: 1 addition & 0 deletions scripts/gen-icons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if not file then
os.exit(1)
end
io.output(file)
io.write "-- stylua: ignore start\n\n"
io.write "local M = {}\n\n"

-- generate all bys
Expand Down
7 changes: 6 additions & 1 deletion scripts/generate_colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ print "Generating file with icons for light backgrounds..."
-- move to first line
vim.cmd ":1"

local lines0 = { "local M = {}", "" }
local lines0 = {
"-- stylua: ignore start",
"",
"local M = {}",
"",
}

-- first table
if fn.search("^M.icons_by_filename", "c") == 0 then
Expand Down

0 comments on commit 1ba5bb9

Please sign in to comment.