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

refactor(codebase)!: make the neorg object local to a core module #1001

Merged
merged 7 commits into from
Jul 31, 2023

Conversation

Groctel
Copy link
Contributor

@Groctel Groctel commented Jul 30, 2023

This is the first PR aimed to address the refactor discussed at #999. The first step in refactoring the code base is moving the neorg object to the neorg.core module, which other modules can require from. This one is a big PR, since it touches most if not all files in the project. However, it is necessary to remove the sequencing necessity for loading the neorg object when it is defined as a global variable.

Please take your time to review that everything in this first change set is correct. After this, I will address the events system as I had already done on January to separate it from the module loader. I have left this task outside of this PR temporarily to strictly focus on the relocation of the neorg object.

@vhyrro
Copy link
Member

vhyrro commented Jul 31, 2023

You're a beast for this, thank you. I did an all round check of everything (took me a while lol) but there's probably some stuff I might've missed. I hope the community will tell us soon enough whether anything's broken or not haha

After all of your PRs are done I think it's prime time to implement test suites :D

@vhyrro vhyrro changed the title Make the neorg object local to a core module refactor(codebase)!: make the neorg object local to a core module Jul 31, 2023
@vhyrro vhyrro merged commit 5706f1e into nvim-neorg:main Jul 31, 2023
2 checks passed
@Groctel Groctel deleted the local-neorg branch August 1, 2023 17:56
pysan3 pushed a commit to pysan3/neorg-templates that referenced this pull request Aug 4, 2023
pysan3 pushed a commit to pysan3/neorg-templates that referenced this pull request Aug 4, 2023
pysan3 added a commit to pysan3/neorg-templates that referenced this pull request Aug 4, 2023
tamton-aquib added a commit to tamton-aquib/neorg-jupyter that referenced this pull request Dec 23, 2023
benlubas pushed a commit to benlubas/neorg that referenced this pull request Jan 11, 2024
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.

None yet

2 participants