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

Is there a plugin to show the definition of a variable quickly, just like the vs code ? #987

Open
guoqinglei opened this issue Jun 6, 2022 · 5 comments

Comments

@guoqinglei
Copy link

For example, in vs code, when you place the cursor at a variable (e.g., when i am programing with verilog or other language), it will show the definition of this variable.
I wonder whether this feature could be enabled in emacs ? (maybe I need to install lsp ?)

@redguardtoo
Copy link
Owner

@guoqinglei
Copy link
Author

I think lsp is too heavy, I wonder if there is any lightweight solution ?

@redguardtoo
Copy link
Owner

I use universal-ctags+counsel-etags.

@guoqinglei
Copy link
Author

I use universal-ctags+counsel-etags.

Then you need to press Ctrl+] on the variable to go to the definition of this variable. However, the vscode can pop up the definition when you put the mouse on this variable, this is amazing.

@redguardtoo
Copy link
Owner

redguardtoo commented Jul 26, 2022

I use universal-ctags+counsel-etags.

Then you need to press Ctrl+] on the variable to go to the definition of this variable. However, the vscode can pop up the definition when you put the mouse on this variable, this is amazing.

Mouse will drag down my speed.

I know this feature. It's not new to me. It's doable in Emacs, maybe some ivy-postframe api need be used.

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

2 participants