nvimtools / none-ls.nvim

null-ls.nvim reloaded / Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
The Unlicense
2.39k stars 69 forks source link

We need a way to iterate external sources #125

Closed Zeioth closed 3 months ago

Zeioth commented 3 months ago

Issues

Feature description

for builtins we have

But we don't have a way to list all external sources. One can only access them individually like

But the next line will fail with error, as it is not exposed.

As result we have no way to iterate all external sources.

Help

No

Implementation help

Zeioth commented 3 months ago

I just noticed none-ls.formatting is just the root directory name of none-ls-extras.nvim, so formatting would just be the directory containing all the sources.

So as long as every external source repository has the same structure, it would be technically possible to

EDIT: Sadly, I've gone through the projects in https://github.com/nvimtools/none-ls-extras.nvim?tab=readme-ov-file#related-projects and each of them have a different directory structure, so this is not a reliable way to get the available external sources.

Zeioth commented 3 months ago

Closed as non viable.