Neovim autocompletion help
I don't know if this is the right discord to ask in but i
ve been trying to fix this for the past 3 hours so here i go.
I setup a nuxt project but i just can't get my autocompletion to work.
I'm using LazyVim with this plugin configuration: https://pastebin.com/dqKE8dV8
But whenever I open a vue file with nvim i\m getting this error: Could not find 'ts_ls', 'vtsls', or 'typescript-tools' lsp client required by 'vue_ls'.
I've tried doing MasonInstall vue-language-server vtsls but it doesnt fix it.
I've had it fixed for some time but then I ran into another problem. My autocompletion doesn't find any of my components when I start typing them. Code snippets and html works but not my components.
And then the previous error came back of not finding ts_ls and vtsls so now i'm here after 3 hours of frustration.
Hopefully someone here can help me. My thanks in advance.2 Replies
Hi @iVyperion. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I appreciate you reaching out, but I need to let you know that your question is primarily about Neovim/LazyVim configuration and LSP setup rather than Nuxt itself. While you're working on a Nuxt project, the issue you're experiencing is related to your editor's language server configuration.
That said, I can point you to some relevant information from the knowledge sources about TypeScript and editor integration in Nuxt:
TypeScript Plugin Support
Nuxt has experimental TypeScript plugin support that can improve TypeScript integration and development tooling. You can enable it with:
To use this feature, you need to:
- Have
typescript installed as a dependency
- Configure your editor to use your workspace TypeScript version
General Recommendations
Based on the knowledge sources:
1. Volar is the recommended extension for Vue/Nuxt development. The knowledge sources mention that Volar should be installed and configured with Takeover mode for proper TypeScript support in Vue files.
2. Auto-imports should work automatically in Nuxt 3. The knowledge sources indicate that Nuxt 3 auto-imports components, composables, and utilities without explicit configuration.
However, for specific Neovim/LazyVim LSP configuration issues (like the ts_ls/vtsls error you're encountering), you would be better served by:
- The Neovim/LazyVim community
- The vue-language-server documentation
- LSP-specific forums or Discord servers
The knowledge sources don't contain information about configuring Neovim or resolving LSP client issues, so I cannot provide more specific guidance on your editor setup problem.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@234378629809700865> Kapa.ai is still learning and improving, please let me know how I did by reacting below.