Skip to content

Commit

Permalink
add note about only calling setup once
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Mar 22, 2023
1 parent d6e9300 commit 5f48a8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ require("cmp").setup({

### Advanced configuration

❗ Note: you should only call `obsidian.setup(...)` once in your config. Calling it a second time will overwrite the settings from the first call,
so if you choose to use multiple of the examples below, make sure to merge the arguments in each `setup()` call into one.

#### Customizing note paths and IDs

If you want to customize how the file names / unique IDs for new notes are created, set the configuration option `note_id_func` to your own function that takes an optional string (the title of the note) as input and returns a string representing a unique ID or file name / path (relative to your vault directory).
Expand Down

0 comments on commit 5f48a8b

Please sign in to comment.