redhat-developer / redhat-developer/yaml-language-server

Weird spacing when using lsp.buf.hover in nvim

Open
#875 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

Summary

When using yamlls with nvim-lspconfig I noticed a weird issue when trying to view the documentation for a symbol. (via lsp.buf.hover)
Other language servers shows normally, I only have this issue with yamlls.

Relevant information

Screenshot 2023-04-24 at 20 42 45

running Neovim version 0.9.0 with nvim-lspconfig (commit sha cf95480) and yamlls version 1.12.0.

Contributor guide

Open the contributing guide

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 by reproducing the spacing issue with yamlls through nvim-lspconfig and lsp.buf.hover using the reported Neovim 0.9.0, nvim-lspconfig commit, and yamlls 1.12.0. Compare the hover output with another language server; done means YAML hover documentation renders without the reported extra spacing.

Written by the indexing model from the issue text.

Assessment

Tech stack
neovim, typescript, yaml
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.