Skip to content

Commit

Permalink
Update neovim formatting example to use the sync version
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrambaud authored Nov 30, 2021
1 parent 517a7aa commit 58025a9
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 58025a9

Please sign in to comment.