ThePrimeagen / ThePrimeagen/init.lua
Completion with npm modules
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4k
- Forks
- 680
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I've been racking my brain on this one for a few days. Can't seem to find any reference out there on this problem. I have a TS project with lodash installed. Following the 0 to LSP tut I was able to make some good adjustments to my current neovim setup! Completion is not working for modules I've installed via NPM. I am running macOS 12.2 with neovim v0.8.3 via brew and have the same config as lsp.lua. :LspInfo seems to show the tsserver working just fine, note eslint must not be configured properly. I assume I'm missing a dependency?
fresh log file:
lsp.log
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked lsp.lua configuration, the attached lsp.log, and :LspInfo in the reported macOS Neovim 0.8.3 setup. Reproduce completion in a TypeScript project with lodash installed, then determine whether the configuration or a missing dependency is responsible. Done means the cause and required setup for completion from installed npm modules are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim, typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100