diff --git a/docs/USAGE.md b/docs/USAGE.md index 43fe3638..d25dfed8 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -175,7 +175,9 @@ autocmd BufWritePre *.tf lua vim.lsp.buf.format() require'lspconfig'.terraformls.setup{} vim.api.nvim_create_autocmd({"BufWritePre"}, { pattern = {"*.tf", "*.tfvars"}, - callback = vim.lsp.buf.format(), + callback = function() + vim.lsp.buf.format() + end, }) ```