microsoft / microsoft/language-server-protocol

Add 'linewidth' parameter to 'formatting_options'

Open
#1,874 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request formatting
Dominant language
TypeScript
Stars
13k
Forks
1k
Avg merge
6d 1h
Merged PRs (30d)
10

Description

vim.lsp.buf.format ignores vim.opt.textwidth value. Also, I could not specify line width with formatting options. Please add that ability.

(I tried to create issue in neovim, but they told me that it is up to LSP.

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 3.17 formattingOptions specification and locate its formatting-options definition in this repository. Determine how a linewidth field should be represented and documented, then verify that the protocol definition and its expected formatting behavior are unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.