-
Notifications
You must be signed in to change notification settings - Fork 0
feat: golang #34
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
feat: golang #34
Conversation
856ab24 to
11a7928
Compare
1c3a0b5 to
2f119f6
Compare
2f119f6 to
8073b88
Compare
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
Adds Go support to the splitjoin plugin by registering Go in Treesitter setup, providing queries, defaults, and split/join implementations, and adding tests and documentation updates.
- Integrates Go into
ensure_installedand test setup - Implements Go-specific split/join logic and defaults
- Adds queries, tests, and README entries for Go support
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/init.lua | Added go and html to Treesitter ensure_installed |
| test/helpers.lua | Switched to vim.treesitter.get_parser API |
| test/go_spec.lua | New test suite for Go split/join |
| queries/go/splitjoin.scm | Added Go capture nodes for split/join |
| queries/css/splitjoin.scm | Added an extra arguments capture (CSS) |
| lua/splitjoin/util/options.lua | Registered Go defaults in options |
| lua/splitjoin/languages/go/functions.lua | Added Go struct split/join functions |
| lua/splitjoin/languages/go/defaults.lua | Defined Go defaults for split/join |
| lua/splitjoin.lua | Added nil-check guard before parsing |
| README.md | Documented HTML and Go support |
Comments suppressed due to low confidence (2)
queries/css/splitjoin.scm:9
- The extra parentheses make this query invalid. It should be
(arguments @splitjoin.css.arguments).
((arguments) @splitjoin.css.arguments)
lua/splitjoin.lua:29
- [nitpick] The indentation here is inconsistent; align the
if tsparser == nil then return endwith thelocal tsparser = get_parser(bufnr)line for readability.
if tsparser == nil then return end
No description provided.