dockerfile-language-server icon indicating copy to clipboard operation
dockerfile-language-server copied to clipboard

Setting for formatting with spaces instead of tabs

Open andrewrynhard opened this issue 2 years ago • 5 comments

I would like to format using spaces instead of tabs.

andrewrynhard avatar Jul 22 '21 18:07 andrewrynhard

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

rcjsuen avatar Jul 22 '21 18:07 rcjsuen

@rcjsuen https://github.com/neovim/nvim-lspconfig

andrewrynhard avatar Jul 22 '21 18:07 andrewrynhard

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

andrewrynhard avatar Jul 22 '21 18:07 andrewrynhard

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.

rcjsuen avatar Jul 22 '21 18:07 rcjsuen

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.

andrewrynhard avatar Jul 22 '21 18:07 andrewrynhard