How to indent 4 spaces?

when I use vim.lsp.buf.format(),It only indents two spaces,How to indent 4 spaces?Thanks.

1 Like

Have you or a plugin perhaps set shiftwidth to 2?

I set shiftwidth=4,this function does not change.

Which LSP are you using?

clangd, I found “gg=G” can indent 4 spaces.