Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 805 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 805 Bytes

Witt - What Is The Type in Neovim

Installation

Using Lazy.nvim

Add the following to your Neovim configuration:

    {
        "typed-rocks/witt-neovim",
        config = function()
            require("witt")
        end
    },

Usage

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.

All options

Tsw rt=[bun|node|deno] show_variables=[true|false] show_order=[true|false]

Defaults:

Tsw rt=node show_variables=false show_order=false