Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for showing the type of the identifier under the cursor #40

Closed
myitcv opened this issue Sep 28, 2015 · 7 comments
Closed

Support for showing the type of the identifier under the cursor #40

myitcv opened this issue Sep 28, 2015 · 7 comments

Comments

@myitcv
Copy link
Contributor

myitcv commented Sep 28, 2015

Would you consider adding support for a command that shows (via an echom perhaps?) the type of the identifier at the current cursor position?

e.g.

// cursor position shown by '_'
let test_Var = "test";

call the new command, output at the bottom of the window is:

string

Thanks

@stefanpenner
Copy link

Oo, would be nice!

@derekpitt
Copy link

is tsuquyomi#hint() what you are looking for?

autocmd FileType typescript nmap <buffer> <Leader>t : <C-u>echo tsuquyomi#hint()<CR>

@myitcv
Copy link
Contributor Author

myitcv commented Sep 29, 2015

@derekpitt - amazing, yes, thanks very much for the pointer.

@myitcv myitcv closed this as completed Sep 29, 2015
@stefanpenner
Copy link

Is there a way to get it to automatically echo when for w/e is under the cursor ?

@myitcv
Copy link
Contributor Author

myitcv commented Sep 30, 2015

@stefanpenner - you probably want to take a look at the CursorMoved autocmd event.

@stefanpenner
Copy link

@myitcv thanks for the tip, that looks on the mark.

@jkillian
Copy link

@stefanpenner Did you get it working well automatically? My vim knowledge is limited, so I wasn't sure how to set it up quite right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants