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

parenthesis and other token matching plugin that supports treesitter written in Lua #48

Open
comiluv opened this issue Feb 28, 2023 · 2 comments
Labels
help wanted Extra attention is needed idea

Comments

@comiluv
Copy link

comiluv commented Feb 28, 2023

What?
Press % to jump between matching parens, if ... else ... end blocks, function() ... end blocks, highlight those keywords, etc.
Basicially github.com/andymass/vim-matchup

Why?
As the Neovim's default plugins matchit and matchparens are not going to support treesitter anytime soon (not a fact but a speculation), a lua version of something that does this would be nice

Potential existing implementations:
github.com/andymass/vim-matchup

Potential pitfalls:
afaik, treesitter integration to Neovim is dependent to nvim-treesitter and its plugins, so any plugin that works on nvim-treesitter would be prone to bugs and errors in those plugins.

@comiluv comiluv added help wanted Extra attention is needed idea labels Feb 28, 2023
@comiluv comiluv changed the title parenthesis and other token matching plugin that supports treesitter parenthesis and other token matching plugin that supports treesitter written in Lua Apr 13, 2023
@Lazerbeak12345
Copy link

I'm not sure how I did it, but it works in my config. https://github.com/Lazerbeak12345/Lazerbeak12345

@comiluv
Copy link
Author

comiluv commented Sep 24, 2023

Yes "matchit" is a plugin written in viml and is by default included in official distribution of Neovim.
But a version similar to matchit that is written in lua doesn't exist (AFAIK) and this wishlist item was written because of a lua version of same functionality can be desirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed idea
Projects
None yet
Development

No branches or pull requests

2 participants