Skip to content

Conversation

@john-mutuma
Copy link
Owner

What does this PR do?

This PR refactors the plugin organization by moving the render-markdown.nvim plugin configuration from the AI-specific Avante plugin file to the main plugins initialization file.

  • Moves render-markdown.nvim configuration from lua/nairovim/plugins/ai/avante.lua to lua/nairovim/plugins/init.lua
  • Improves code organization by separating markdown rendering functionality from AI-specific configurations
  • Maintains the same functionality and file type support (markdown, Avante, mcphub, copilot-chat)

Why is it needed?

  • Better Separation of Concerns: Markdown rendering is a general functionality that shouldn't be tied specifically to the Avante AI plugin
  • Improved Maintainability: Having general plugins in the main init file makes the codebase more organized and easier to maintain
  • Logical Organization: Keeps AI-specific configurations in AI plugin files while general utilities remain in the main plugins file

How have the changes been tested?

  • Configuration maintains identical functionality after the move
  • Plugin still supports all required file types: markdown, Avante, mcphub, copilot-chat
  • No breaking changes to existing functionality
  • Plugin lazy-loading behavior remains unchanged

Screenshots (if applicable)

No UI changes - this is a code organization refactor with no visual impact.

Checklist

  • Code follows project conventions and style guidelines
  • Plugin configuration maintains same functionality
  • No breaking changes introduced
  • File type support preserved (markdown, Avante, mcphub, copilot-chat)
  • Lazy loading configuration unchanged
  • Commit message follows project format
  • Changes improve code organization and maintainability

John Mutuma added 2 commits July 28, 2025 18:38
- Replace vim.loop.now() with vim.uv.now() in MCP status component

- This addresses the deprecation of vim.loop in favor of vim.uv in newer Neovim versions

- Maintains compatibility with modern Neovim while fixing potential warnings

Signed-off-by: John Mutuma <johnmutuma@microsoft.com>

fix(lualine): adjust spinner timing for better visibility

- Changed vim.uv.now() divisor from 100 to 100000 for slower spinner animation

- This makes the MCP status spinner more visible and less distracting

- Improves user experience when monitoring MCP server status

Signed-off-by: John Mutuma <johnmutuma@microsoft.com>

fix(lualine): optimize spinner animation speed for MCP status

- Changed vim.uv.now() divisor from 100000 to 1000 for optimal spinner speed

- This provides better visual feedback while monitoring MCP server operations

- Balances visibility with smooth animation for improved user experience

Signed-off-by: John Mutuma <johnmutuma@microsoft.com>
- Move render-markdown.nvim configuration from ai/avante.lua to plugins/init.lua

- Improves plugin organization by separating markdown rendering from AI-specific configs

- Maintains same functionality with cleaner separation of concerns

Signed-off-by: John Mutuma <johnmutuma@microsoft.com>
@john-mutuma john-mutuma merged commit 207bfdc into develop Aug 4, 2025
@john-mutuma john-mutuma deleted the user/johnmutuma/continous-improvements branch August 4, 2025 12: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.

2 participants