Bump treesitter stuff to be fully compatable with new main#277
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactors to the Neovim Treesitter configuration, focusing on better modularization, enhanced statusline feedback, and more explicit plugin setups. The main changes include extracting Treesitter textobjects and modules into their own plugin files, updating the Treesitter configuration for clarity and maintainability, and adding a new statusline indicator for outdated parsers.
Tree-sitter plugin modularization and feature separation:
nvim/lua/plugins/treesitter-modules.luato handle Tree-sitter modules such as auto-install, incremental selection, and indentation, moving these responsibilities out of the main Tree-sitter config for better separation of concerns.nvim/lua/plugins/nvim-treesitter-textobjects.luafor Tree-sitter textobjects, including custom keymaps for selecting and moving between code objects like functions, classes, and parameters.Enhancements to user feedback and statusline:
nvim/lua/plugins/lualine.luathat displays the number of outdated Tree-sitter parsers and provides an interactive notification listing which parsers need updates. [1] [2]Refactoring and maintainability improvements:
nvim/lua/plugins/nvim-treesitter.luato use the latest setup patterns, removed inline module configurations, and switched to explicit installation of supported languages. [1] [2]vimdocand removed thecommentparser from the default set.