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

Recommend x instead of v mapping #16

Closed
jemag opened this issue Jun 12, 2022 · 1 comment · Fixed by #19
Closed

Recommend x instead of v mapping #16

jemag opened this issue Jun 12, 2022 · 1 comment · Fixed by #19

Comments

@jemag
Copy link
Contributor

jemag commented Jun 12, 2022

A lot of users will often use the "select" mode for snippets. The current recommendations will trigger in select mode:

vnoremap <silent> m :lua require('tsht').nodes()<CR>

meaning someone writing "m" while filling their snippets, will have the plugin trigger.

I believe most users would probably prefer to use visual only:

xnoremap <silent> m :lua require('tsht').nodes()<CR>
@mfussenegger
Copy link
Owner

Sounds good to me, can you create a PR?

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

Successfully merging a pull request may close this issue.

2 participants