Skip to content

Bump treesitter stuff to be fully compatable with new main#277

Merged
djensenius merged 1 commit into
mainfrom
update-treesitter
Dec 19, 2025
Merged

Bump treesitter stuff to be fully compatable with new main#277
djensenius merged 1 commit into
mainfrom
update-treesitter

Conversation

@djensenius
Copy link
Copy Markdown
Owner

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:

  • Added a new plugin configuration file nvim/lua/plugins/treesitter-modules.lua to 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.
  • Created a dedicated plugin file nvim/lua/plugins/nvim-treesitter-textobjects.lua for Tree-sitter textobjects, including custom keymaps for selecting and moving between code objects like functions, classes, and parameters.

Enhancements to user feedback and statusline:

  • Added a new statusline component in nvim/lua/plugins/lualine.lua that displays the number of outdated Tree-sitter parsers and provides an interactive notification listing which parsers need updates. [1] [2]

Refactoring and maintainability improvements:

  • Refactored the main Tree-sitter plugin configuration in nvim/lua/plugins/nvim-treesitter.lua to use the latest setup patterns, removed inline module configurations, and switched to explicit installation of supported languages. [1] [2]
  • Updated the list of installed languages to include vimdoc and removed the comment parser from the default set.

@djensenius djensenius merged commit 8a6f879 into main Dec 19, 2025
5 checks passed
@djensenius djensenius deleted the update-treesitter branch December 19, 2025 17:20
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 this pull request may close these issues.

1 participant