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

Setting for formatting with spaces instead of tabs #257

Open
andrewrynhard opened this issue Jul 22, 2021 · 5 comments
Open

Setting for formatting with spaces instead of tabs #257

andrewrynhard opened this issue Jul 22, 2021 · 5 comments

Comments

@andrewrynhard
Copy link

I would like to format using spaces instead of tabs.

@rcjsuen
Copy link
Owner

rcjsuen commented Jul 22, 2021

@andrewrynhard Which LSP client are you using? This feature should already be supported.

@andrewrynhard
Copy link
Author

@andrewrynhard
Copy link
Author

I must be missing something? I don't see how to do this.

@rcjsuen
Copy link
Owner

rcjsuen commented Jul 22, 2021

I must be missing something? I don't see how to do this.

@andrewrynhard The LSP client is responsible for calling the language server with the relevant parameters. I think you're looking for the vim.lsp.buf.formatting function? Not sure how you're supposed to send in options though. You should reach out to the NeoVim team to see what you're missing here.

@andrewrynhard
Copy link
Author

I must be missing something? I don't see how to do this.

@andrewrynhard The LSP client is responsible for calling the language server with the relevant parameters. I think you're looking for the vim.lsp.buf.formatting function? Not sure how you're supposed to send in options though. You should reach out to the NeoVim team to see what you're missing here.

Got it. Sorry for the noise.

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

No branches or pull requests

2 participants