Skip to content
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

lib/types: merge into extendedLib #1978

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

MattSturgeon
Copy link
Member

  • lib/types: merge into extendedLib
  • lib: migrate helpers.nixvimTypes -> lib.types

As discussed in #1975 (comment)

I think this is the cleanest way for us to have custom option types, however we do loose some clarity. You can no longer tell at a glance whether a type is from nixvim or nixpkgs.

@GaetanLepage seems on board, what's your view @traxys?

@GaetanLepage
Copy link
Member

Let's wait for @traxys' ACK for this one.

@MattSturgeon
Copy link
Member Author

@traxys @khaneliman It'd be great to have your opinions on this PR. #1982 is currently blocked waiting for a decision here.

As laid out in the description, I'm undecided whether or not this is a good idea.

There's value in keeping our changes to lib scoped within the lib.nixvim namespace, so I'm not married to this idea.

But based on our internal usage, we tend to use lib.types and lib.nixvim.nixvimTypes interchangeably anyway...

Copy link
Contributor

@khaneliman khaneliman left a comment

Choose a reason for hiding this comment

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

IMO it's a good quality of life change. As mentioned, we already do a lot of types = nixvimtypes and this would make it less cumbersome to utilize our library types; I know some don't like this much 'magic', though.

@traxys
Copy link
Member

traxys commented Aug 21, 2024

I don't have much of an opinion on this

@MattSturgeon
Copy link
Member Author

Ok, since we have no descent I'll rebase and merge.

To summarise:

Thanks all for sharing your views!

@MattSturgeon

This comment was marked as resolved.

@MattSturgeon

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

@MattSturgeon

This comment was marked as resolved.

Copy link
Contributor

mergify bot commented Aug 21, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at b7f419a

@mergify mergify bot merged commit b7f419a into nix-community:main Aug 21, 2024
4 checks passed
@MattSturgeon MattSturgeon deleted the lib_nixvim_types branch August 21, 2024 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants