Top 11 Lua tree-sitter Projects
-
nvim-ts-rainbow
Rainbow parentheses for neovim using tree-sitter. https://sr.ht/~p00f/nvim-ts-rainbow preferred
I'm happy to say I have fixed [the bug in nvim-ts-rainbow] that caused all JSX props to be highlighted](https://github.com/p00f/nvim-ts-rainbow/issues/118) in extended_mode instead of just highlighting the tag names. It was bugging me for a while when working on React components. Now, only the tag names and angle brackets in JSX elements are highlighted.
-
nvim-ts-context-commentstring
Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.
I'm using Context Commentstring & Comment.nvim together.
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
twilight.nvim
🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
There's an example in the following repo: https://github.com/folke/twilight.nvim (look at selene.toml and vim.toml)
-
Also, check out the nvim-treesitter/playground to try the queries with fast feedback.
-
Project mention: Need help with underlined syntax! Makes me dizzy from reading, I have the treesitter parser installed for latex, and lsp server for latex. But the same occurs with go, python and everything really, I would love some help (dotfiles in github: crazyc4t/dotfiles) | reddit.com/r/neovim | 2022-06-30
Maybe spellsitter can help with the unwanted underlining.
-
iswap.nvim
Interactively select and swap function arguments, list elements, and more. Powered by tree-sitter.
Project mention: Post-operation flashing and arbitrary node swapping! | reddit.com/r/neovim | 2022-08-02[iswap.nvim](https://github.com/mizlan/iswap.nvim) is a plugin for swapping things around interactively in your buffer (powered by tree-sitter). Since the start I've entertained the idea of a post-operation highlight flash that confirms the operation, since otherwise it is sometimes hard to tell what you just did (to make sure you did it correctly). Also, you can arbitrarily swap sibling nodes too now, thanks to a PR by u/JoseConseco_ !
-
regexplainer was my first lua rodeo and also my first (n)vim plugin and I think it turned out OK so far.
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
-
Project mention: Leaps and (no) bounds - extend leap.nvim with custom motions, callbacks, Tree-sitter, and more | reddit.com/r/neovim | 2022-07-09
This copies the idea of nvim-treehopper. Just a work in progress hack (pretty usable though), but planning to make a full-fledged plugin, if someone else won't do it :) (Needless to say, my gists can be considered unlicensed, do whatever you want with them.)
-
Project mention: The best Neovim color scheme with tree sitter and LSP support. | reddit.com/r/neovim | 2022-02-13
How anyone didn't suggest nebulous is nuts to me. Great color-scheme for tree-sitter.
-
Also have a look at how LSP is setup in this setup.
Lua tree-sitter related posts
- How can I get semantic highlighting working on clangd?
- Very slow input latency for haskell when treesitter highlighting is enabled
- nvim-ts-rainbow improved highlighting of JSX
- Neovim config for Windows with LSP and lua
- Neovim/Vim configs [NOOB HERE]
- Leaps and (no) bounds - extend leap.nvim with custom motions, callbacks, Tree-sitter, and more
- How do i find out which highlight is being used on a section from a colorscheme?
Index
What are some of the best open-source tree-sitter projects in Lua? This list will help you:
Project | Stars | |
---|---|---|
1 | nvim-ts-rainbow | 675 |
2 | nvim-ts-context-commentstring | 548 |
3 | twilight.nvim | 544 |
4 | playground | 432 |
5 | spellsitter.nvim | 427 |
6 | iswap.nvim | 340 |
7 | nvim-regexplainer | 314 |
8 | melange | 287 |
9 | nvim-treehopper | 232 |
10 | nebulous.nvim | 140 |
11 | shark | 17 |
Are you hiring? Post a new remote job listing for free.