microsoft / language-server-protocol

Defines a common protocol for language servers.
https://microsoft.github.io/language-server-protocol/
Creative Commons Attribution 4.0 International
11.16k stars 787 forks source link

Add 'linewidth' parameter to 'formatting_options' #1874

Open pronvis opened 9 months ago

pronvis commented 9 months ago

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.

dbaeumer commented 9 months ago

Actually neovim can add it since the FormatOptions allow arbitrary values. However I will keep this since adding it to LSP will standardize it.