Open rokbot opened 5 months ago
I think it would be cool to have a mason like installer for them in addition to lazy loading them on demand
It would be great to load the adapters according to the filetype. I am trying to get rid of my IDEs and to switch to Neovim for almost everything. But without neotest, it isn't interesting to get rid of my IDEs right now.
I reported #466. It may be related - I too see both adapters to get loaded in random order and causing problems.
Question / Proposal:
Is there a way to lazy load the adapters based on the file type?
The problem is that all the adapters are loaded even when they are no required for the current neotest session.
The current implementation is:
I tried:
but does not work plus it has their own problems like there should be only one setup, thinking about the
after/ftplugin
directory but i feel it won't work either so i suppose, maybe can be implemented internally inneotest
, probably create some table that can be passed to setup as an alternative to theadapters
table to be able to lazy load by ft, something likeadapters_by_ft
that should look like this:I think it would be nice, maybe i will try to implement this by myself, and if it works submit a PR.