ThePrimeagen / ThePrimeagen/init.lua

Completion with npm modules

Open
#48 1 comment 0 reactions 0 assignees View on GitHub

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?

Screen Shot 2023-02-10 at 2 12 18 PM Screen Shot 2023-02-10 at 2 16 46 PM

fresh log file:
lsp.log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.