-
-
Notifications
You must be signed in to change notification settings - Fork 252
refactor!: use main
Tree-sitter branch
#1547
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
base: main
Are you sure you want to change the base?
Conversation
codecompanion
ftpluginmain
tree-sitter branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors CodeCompanion to support the new main branch of nvim‑treesitter and updates the minimum Neovim version from 0.10 to 0.11. Key changes include:
- Cloning and installing nvim‑treesitter from the main branch.
- Updating Neovim version checks and error messages across the plugin and health scripts.
- Adjusting installation steps in minimal init files and CI workflows.
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
tests/screenshots/* | Updated screenshot files with new outputs reflecting refactored test setups. |
scripts/minimal_init.lua | Updated Treesitter installation process and registration of markdown. |
plugin/codecompanion.lua | Updated Neovim version check and error message. |
minimal.lua | Adjusted lazy plugin dependency for nvim‑treesitter using the main branch. |
lua/codecompanion/health.lua | Updated health check for Neovim version. |
ftplugin/codecompanion.lua | Added minimal Treesitter startup routine. |
Makefile | Updated repository clone command to target the main branch of nvim‑treesitter. |
.github/workflows/ci.yml | Modified CI steps and added tree‑sitter CLI installation. |
.github/ISSUE_TEMPLATE/bug_report.yml | Updated Treesitter dependency and installation instructions. |
Not sure why |
Deploying codecompanion with
|
Latest commit: |
abc67b5
|
Status: | ✅ Deploy successful! |
Preview URL: | https://46ba9bd9.codecompanion.pages.dev |
Branch Preview URL: | https://fix-ts-highlighting.codecompanion.pages.dev |
main
tree-sitter branchmain
tree-sitter branch
main
tree-sitter branchmain
Tree-sitter branch
Hi! I'm currently waiting for this PR to be merged and using the following workaround in the meantime (NOTE: I'm not using any markdown rendering plugins). Might be helpful for others who have migrated to the tree-sitter --- treesitter for chat buffers
--- NOTE remove when this PR is merged #1547
vim.api.nvim_create_autocmd("User", {
pattern = "CodeCompanionChatCreated",
group = vim.api.nvim_create_augroup("my-codecompanion-chat", { clear = true }),
callback = function(event)
vim.treesitter.start(event.data.bufnr, "markdown")
end
}) |
Great share @yavorski. I've added this to my previous announcement. |
Description
This PR will get the plugin ready for when
main
becomes the default over on nvim-treesitter.Checklist
CodeCompanion.has
in the init.lua file for my new featuremake all
to ensure docs are generated, tests pass and my formatting is applied