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

Norg/Treesitter, or external providers #3

Closed
3 tasks done
hedyhli opened this issue Nov 8, 2023 · 1 comment
Closed
3 tasks done

Norg/Treesitter, or external providers #3

hedyhli opened this issue Nov 8, 2023 · 1 comment
Labels
enhancement New feature or request providers
Milestone

Comments

@hedyhli
Copy link
Owner

hedyhli commented Nov 8, 2023

There could be a providers.priority table that lists providers to try, in that order. These would be appended to form import path outline.providers.<value>.

Hence external plugins can have a lua/outline/providers/<plugin>.lua and users of those plugins can simply add "plugin" to the priority list and the external provider can be used.

todo

  • standardize what functions each provider must have
  • use the new config option and import them properly in providers/init.lua
  • Norg support shouldn't be too hard. I'll create an example outline-norg plugin to this this eventually decided to add this into builtin providers since the module ended up being relatively lightweight. norg
  • help files can include outline items of headings only (h[123456] nodes in treesitter). vimdoc (moved to vimdoc support #34)
@hedyhli hedyhli added the enhancement New feature or request label Nov 12, 2023
@hedyhli hedyhli added this to the backlog milestone Nov 12, 2023
@hedyhli hedyhli changed the title Norg Norg, or external providers Nov 13, 2023
@hedyhli hedyhli changed the title Norg, or external providers Norg/Treesitter, or external providers Nov 14, 2023
@hedyhli hedyhli mentioned this issue Nov 14, 2023
@hedyhli
Copy link
Owner Author

hedyhli commented Nov 22, 2023

image

silvercircle added a commit to silvercircle/outline.nvim that referenced this issue Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request providers
Projects
None yet
Development

No branches or pull requests

1 participant