Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'linewidth' parameter to 'formatting_options' #1874

Open
pronvis opened this issue Dec 31, 2023 · 1 comment
Open

Add 'linewidth' parameter to 'formatting_options' #1874

pronvis opened this issue Dec 31, 2023 · 1 comment
Labels
feature-request Request for new features or functionality formatting
Milestone

Comments

@pronvis
Copy link

pronvis commented Dec 31, 2023

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
Copy link
Member

dbaeumer commented Jan 8, 2024

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

@dbaeumer dbaeumer added this to the Backlog milestone Jan 8, 2024
@dbaeumer dbaeumer added feature-request Request for new features or functionality formatting labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality formatting
Projects
None yet
Development

No branches or pull requests

2 participants