-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: split tables into individual files #550
Conversation
5b8f2ad
to
2ea6906
Compare
2ea6906
to
d6c8bc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works beautifully, removes more code.
Please:
- Update CONTRIBUTING.md
- change the operation name from colors to generate
Whoops, I see you're still changing. I'll wait until you're done :) |
Sorry for pushing so vigorously to ready for review PR. To stop myself from squeezing even more into this poor PR I would like to ask yo to review once again. On top of what you already commented on:
Will update contributing document next. |
Absolutely! It's a great source of confusion, and data doesn't belong next to code. |
Looks good to me; luals will complain if they're not right. There are two warnings right now for deprecated... I'll deal with them. |
@@ -24,8 +19,43 @@ or via your OS package manager e.g. *Arch Linux*: | |||
pacman -S stylua luacheck | |||
``` | |||
|
|||
## Adding icons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I didn't just move the block here, so please review as new.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, reverted contributing changes on #551
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working flawlessly!
@@ -1,9 +1,20 @@ | |||
local M = {} | |||
|
|||
---@alias iconName string Name of the icon | |||
|
|||
---@class Icon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works. It will warn when you do:
---@param icon_data number
local function get_highlight_foreground(icon_data)
High level testing:
|
We can harden it. Which cases where scripts worked for invalid inputs are worth fixing in your opinion?
Seen that. Adding force to rm fixes the issue, will push now.
This is probably most worrisome. I would like to enforce single line icon tables somehow, ideally with external formatter rather than coming up with potentially fragile solution ourselves. Any ideas? You did mention emmylua in #543 (comment) but I am not sure if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a huge win and will save a lot of review work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are all present in CI and work.
CI could be consolidated at some point but not today.
@@ -24,8 +19,43 @@ or via your OS package manager e.g. *Arch Linux*: | |||
pacman -S stylua luacheck | |||
``` | |||
|
|||
## Adding icons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, reverted contributing changes on #551
I reckon it's fine - invalid inputs are obvious and will fail CI.
Nice. CI will fail anyway, which is what we're after.
Honestly, garbage in, garbage out. I don't think it's worth it to add/move to emmylua. It's not going to handle cases like this either - it will just format them the same as mini does. |
Thanks for reviewing, both! |
* docs: update contribution / icon adding docs * add issue templates * use type instead of label * fixup! docs: update contribution / icon adding docs * revert CONTRIBUTING as changes present in #550 * add missing icon notice * add contributing reference --------- Co-authored-by: hasecilu <[email protected]>
No description provided.