-
Notifications
You must be signed in to change notification settings - Fork 1
fix(lsp): prevent LspOrganize command duplication and add safety guards #31
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
Conversation
Replaces the legacy `.meowg1k/config.yaml` with the new root `.meowg1k.yml` to align with the latest tool version. This change centralizes and significantly enhances the AI development assistant's capabilities. The new configuration introduces comprehensive, project-specific prompts for Lua code review, plugin development, refactoring, and documentation. It also defines multiple Gemini model profiles (fast, smart, embeddings) and improves the `ask`, `commit`, and `pullRequest` workflows for meowvim development.
Improves the out-of-the-box experience for TypeScript and JavaScript by refining LSP, completion, and formatting configurations. Key changes include: - **tsserver**: - Adds an "Organize Imports" feature, available via `<leader>xo` and the `:LspOrganize` command. - Enables extensive inlay hints for parameter names, variable types, and more, providing richer inline context. - Disables the built-in LSP formatter, deferring to `conform.nvim` to respect project-local Prettier configurations. - Enables `updateImportsOnFileMove` for better refactoring support. - **nvim-cmp**: - Adds new completion sources for Lua (`nvim_lua`) and the command line (`cmdline`), improving the editing experience beyond just TS/JS. - Enhances the completion menu with source-specific icons for better readability. - **conform.nvim**: - Removes hardcoded `--tab-width` for Prettier, allowing it to use the settings from a project's `.prettierrc` file.
Co-authored-by: retran <[email protected]>
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 addresses a command duplication issue in the TypeScript language server configuration by moving the LspOrganize command creation from the on_attach callback to a global scope.
Key Changes:
- Moved
LspOrganizecommand creation outside of theon_attachcallback to prevent duplication warnings - The command is now created once globally before the TypeScript LSP setup, rather than being recreated for each buffer attachment
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot adress review comments |
Co-authored-by: retran <[email protected]>
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
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot address review comments |
Co-authored-by: retran <[email protected]>
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
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot address review comments |
bufnptypo tobufnrfor consistency with the rest of the fileAll review feedback has been addressed:
bufnptobufnr✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.