Skip to content

Conversation

@john-mutuma
Copy link
Owner

What does this PR do?

This PR integrates the OpenCode AI plugin into NairoVIM following the project's established modular architecture patterns. The main changes include moving all OpenCode keymaps from the plugin configuration to a dedicated customization file and refining the Avante plugin configuration for more precise file targeting.

  • Moved 12 OpenCode keymaps from plugin config to modular customization system
  • Updated OpenCode plugin configuration to follow NairoVIM patterns
  • Created structured keymap definitions using nairovim.KeymapDef[] format
  • Refined Avante plugin to use specific copilot-instructions.md file instead of entire .github directory
  • Applied consistent keymap handling with common_utils.map()

Why is it needed?

This refactoring ensures consistency with NairoVIM's modular architecture, making keymaps more maintainable and following established project conventions. It also improves the Avante plugin's efficiency by targeting specific instruction files rather than loading entire directories.

How have the changes been tested?

  • Verified keymap functionality remains intact after refactoring
  • Confirmed plugin loading follows established patterns
  • Tested workspace utility integration for file targeting
  • Validated git operations and commit messaging

Screenshots (if applicable)

N/A - Backend configuration changes

Checklist

  • Code follows NairoVIM's established patterns and conventions
  • Keymaps moved to modular customization system
  • Plugin configurations updated properly
  • Workspace utility integration tested
  • Git commits follow project messaging format
  • No breaking changes to existing functionality
  • Documentation and code comments maintained

John Mutuma added 3 commits September 28, 2025 16:39
Add OpenCode AI integration with comprehensive keymap support:
- Add OpenCode plugin configuration with AI assistance features
- Create modular keymap customizations following NairoVIM pattern
- Update Avante configuration to use specific copilot-instructions.md file
- Update Mason LSP configuration for better language server management

Features added:
- OpenCode toggle, ask, and prompt manipulation commands
- Session management and navigation shortcuts
- Custom code explanation functionality
- Integration with existing NairoVIM common utilities
@john-mutuma john-mutuma merged commit af87a7b into develop Sep 28, 2025
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.

2 participants