Al0den / notion.nvim

Notion API wrapper for Neovim
MIT License
61 stars 4 forks source link

Initialization issue #17

Closed ARtoriouSs closed 3 months ago

ARtoriouSs commented 3 months ago

Hey 👋 Thank you for working on that plugin!

However, I couldn't really try it :(

Steps to reproduce

I installed it via Lazy as specified in README, the notion API key is in the NOTION_API_KEY env variable. Running :Notion outputs [Notion] Not initialized, please run :NotionSetup, running :NotionSetup outputs E492: Not an editor command: NotionSetup. I also tried to explicitly init the default configuration, but it had no effect.

Some more context:

Calling require"notion".openMenu() fails with the nil error - attempt to call field 'openMenu' (a nil value) Calling require"notion".raw() outputs the same not initialized message - [Notion] Not initialized, please run :NotionSetup

Al0den commented 3 months ago

Typo in function, should be :Notion setup Fixed in feadd04, Update and let me know if it's fixed!

ARtoriouSs commented 3 months ago

Yep, it works like this, thank you! 🙌