graphql / graphql/graphiql

[lsp-server] 🐞 not working on neovim + coc

Open
#3,649 2 comments 0 reactions 0 assignees View on GitHub
bug lsp-server
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

Auto-completion, "go to definition" and general LSP functionality expectations are not working.

### Expected Behavior

The aforementioned expectations should work.

### Steps To Reproduce

- Install the package and add change the coc.nvim settings as suggested: https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli#lsp-workspace-configuration

- Open a `.gql` or `.graphql` file and trigger the Coc auto-completion (usually `ctrl + space`) and nothing will be returned.

**IMPORTANT**: IntelliJ & https://github.com/neovim/nvim-lspconfig clients work as expected.

### Environment

* LSP Server Version:

```
graphql-language-service-cli 3.4.1
├── graphql-language-service 5.2.1
└─┬ graphql-language-service-server 2.13.1
└── graphql-language-service 5.2.1
```

* OS: `MacOS Sonoma 14.5 (23F79)`

* LSP Client:

**Nvim**
```
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1716656478
```

**Coc**
```
commit 51692dc1d148f67f18573d1afeb4724dc5a06506 (HEAD -> release, origin/release)
Author: Heyward Fann
Date: Thu Jul 4 19:38:38 2024 +0800
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.