Skip to content

How can I get typing for MiniTest with lua LSP? #1357

Closed Answered by echasnovski
oysandvik94 asked this question in Q&A
Discussion options

You must be logged in to vote

I am afraid, the answer is that there is no intentional LuaLS class definitions coming directly from 'mini.nvim'. See #1110 and #1330 for more details.

If you want to see all MiniTest methods, then I guess it is up to LuaLS to infer them correctly (which it might be able to do on practice).

If you want the information about MiniTest.new_set() output, then the answer is basically a table without special methods or fields. The common approach in 'mini.nvim' is to try and use as simple data structures as possible (which far less common than I'd like it to be).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@oysandvik94
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation mini.test
2 participants