Using Lazy.nvim
Add the following to your Neovim configuration:
{
"typed-rocks/witt-neovim",
config = function()
require("witt")
end
},
Use it like you would in a typescript-playground. Just add a comment on the line below your type and point it to your type:
type YourType = A | B | C;
// ^?
This will then show the result of your Type like tsserver would do it when hovering.
Tsw rt=[bun|node|deno] show_variables=[true|false] show_order=[true|false]
Tsw rt=node show_variables=false show_order=false