How can I get typing for MiniTest with lua LSP? #1357
-
For example, see screenshot: I would love to get type information on this. I have installed mini.test in my Neovim config, and I'm using lazydev.nvim. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This just started working, maybe I managed to build something correctly 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
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 If you want the information about |
Beta Was this translation helpful? Give feedback.
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).