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

notes/obsidian: remove default dir-value #545

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

LilleAila
Copy link
Contributor

As the obsidian.nvim readme describes, the dir option is provided for backwards compatibility. The problem with this is that because nvf defines this value (with a default value), means that it overrides the workspaces option, making it impossible to use. Removing it would keep the same functionality, just without the default.

@LilleAila LilleAila requested a review from NotAShelf as a code owner January 10, 2025 07:29
Copy link
Owner

@NotAShelf NotAShelf left a comment

Choose a reason for hiding this comment

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

LGTM. One small suggestion, but it's not strictly necessary.

Please do add an entry to the changelog before I can merge this.

@LilleAila
Copy link
Contributor Author

Please do add an entry to the changelog before I can merge this.

Added to changelog, hopefully written correctly

default = "~/my-vault";
type = nullOr str;
example = "~/my-vault";
default = null;
Copy link
Owner

Choose a reason for hiding this comment

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

Does obsidian.nvim handle this properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does obsidian.nvim handle this properly?

Yes, from my testing, although i accidentally commited it. Reverting it, as the other option seems better

@LilleAila LilleAila force-pushed the obsidian-remove-dir-default branch from 2ab93dc to 6852120 Compare January 10, 2025 08:07
@NotAShelf
Copy link
Owner

Merging once CI passes.

@NotAShelf NotAShelf merged commit c09ae38 into NotAShelf:main Jan 10, 2025
9 checks passed
@NotAShelf
Copy link
Owner

thanks :)

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.

3 participants