Skip to content

Commit

Permalink
Merge pull request #729 from kevinrambaud/main
Browse files Browse the repository at this point in the history
Update neovim formatting example to use the sync version
  • Loading branch information
radeksimko authored Nov 30, 2021
2 parents 517a7aa + 58025a9 commit c5b2f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ let g:LanguageClient_serverCommands = {
lua <<EOF
require'lspconfig'.terraformls.setup{}
EOF
autocmd BufWritePre *.tf lua vim.lsp.buf.formatting()
autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync()
```

Make sure to read through to [server_configurations.md#terraformls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#terraformls) if you need more detailed settings.
Expand Down

0 comments on commit c5b2f54

Please sign in to comment.