Closed Zeioth closed 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.
Closed as non viable.
Issues
Feature description
for builtins we have
print(vim.table(require("null-ls").builtins)
: To list all builtins.But we don't have a way to list all external sources. One can only access them individually like
print(vim.inspect(require("none-ls.formatting.reformat_gherkin")))
But the next line will fail with error, as it is not exposed.
print(vim.inspect(require("none-ls.formatting")))
As result we have no way to iterate all external sources.
Help
No
Implementation help
mason-null-ls
.none-ls.external_sources.formatting
, now that we have the concept of external sources.