-
Notifications
You must be signed in to change notification settings - Fork 111
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
Incorrect Lua type of the modules
field of tabufline/statusline config table
#287
Comments
whats incorrect here? 🤔 |
Eh, like, the module can be a string: statusline = {
modules = {
cursor = "%#St_pos_sep#" .. "" .. "%#St_pos_icon# %#St_pos_text# %l,%v %p %% "
}
} but |
ohh, idk about lua types, @lucario387 and @KorigamiK and @mgastonportillo have contributed to it 😃 |
well, before it was only allowed to be a func :) Things changed, but the types were not updated |
I can push an update if that's fine. I noticed the script got updated as well. Edit: wait, what's wrong with the type definition? It says modules can be either strings or functions that return a string, and that's correct Edit2: found the issue |
@lucario387 can you confirm if the script could have added types from some user's chadrc? I updated it as a chore before sending the PR and I see some types removed, but they seem to be external, like |
Yeah these might be plugin highlights that get loaded after. It's probably best to not maintain them as a chore every time. |
I'll look at it today and see where the tables merge. Maybe I can update the script first. I just need a confirmation to see if this behaviour is intended. |
By the way, I found this is incorrect too: Line 86 in 0c283b6
Since it can be table too: Line 12 in 0c283b6
So perhaps there's some more lines to be changed in |
ui/nvchad_types/chadrc.lua
Line 98 in b23a4de
is inconsistent with
ui/lua/nvchad/stl/utils.lua
Lines 28 to 35 in b23a4de
The text was updated successfully, but these errors were encountered: