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

fix(cssls): enable enabling of formatting capabilities #2925

Merged
merged 1 commit into from
Dec 8, 2023
Merged

fix(cssls): enable enabling of formatting capabilities #2925

merged 1 commit into from
Dec 8, 2023

Conversation

chrisgrieser
Copy link
Contributor

For some reason not entirely clear to me, simply adding css.settings.format.enable = true does not work to enable the formatting capabilities of the LSP.

the css-lsp's documentation isn't great, but in the repo of the sublime-client for cssls, I found that apparently you need add provideFormatter = true as an initialization option. not sure where exactly that options comes from though, as it does not seem to be included in the code of the vscode language server, so I assume it has sth to do with the language server extraction?

Anyway, adding provideFormatter = true to the init_options works and enables enabling (no typo) the formatting capabilities.

@chrisgrieser chrisgrieser requested a review from glepnir as a code owner December 7, 2023 15:25
@glepnir glepnir merged commit fdf738a into neovim:master Dec 8, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants