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

idea: alt + click : goto definition #2

Open
airtonix opened this issue Sep 15, 2022 · 3 comments
Open

idea: alt + click : goto definition #2

airtonix opened this issue Sep 15, 2022 · 3 comments

Comments

@airtonix
Copy link

a way to jump to definition, like we can in vscode

@GiorgosXou
Copy link
Owner

try adding those 2 lines under the polish() function:

map.set('i', '<C-LeftMouse>', vim.lsp.buf.definition, bufopts)
map.set('n', '<C-LeftMouse>', vim.lsp.buf.definition, bufopts)

or

map.set('i', '<C-LeftMouse>', 'gd', bufopts)
map.set('n', '<C-LeftMouse>', 'gd', bufopts)

One of those 2 sets of 2 lines should work.

@GiorgosXou
Copy link
Owner

There's also F12

@airtonix
Copy link
Author

will try this out 👍🏻

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