Quramy / tsuquyomi

A Vim plugin for TypeScript

Home Page:http://www.vim.org/scripts/script.php?script_id=5151

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show inferred type?

cmdcolin opened this issue · comments

Sorry if this is naive but can this plugin show the inferred type of a function or variable?

I am thinking sort of similar to this, doesn't have to be the same exact thing (inline), some tooltip or action to get the type would be fine too

https://marketplace.visualstudio.com/items?itemName=MartinJohns.inline-types

I'm looking for an answer on this too

I ended up using the coc.nvim typescript config and it has a pointer for configuring your VIM in their README so that you press shift+k (e.g. capital K) while your cursor is on a variable and it pops out a hover window with the result https://github.com/neoclide/coc.nvim

Specific line

" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>