Skip to content

Commit

Permalink
fix readme code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricedesaxe committed Jul 19, 2024
1 parent 7844e71 commit 545edaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,14 @@ augroup END

Or in `init.lua`:

```lua
vim.api.nvim_exec([[
augroup tcsort
autocmd!
autocmd BufWritePre *.templ :silent! execute '!tcsort --file %'
augroup END
]], false)
```

You should also be able to configure it with input from stdin and output to stdout using the `--stdin` flag,
but I'm too much of a nvim noob to figure out how to configure it.
Expand Down

0 comments on commit 545edaf

Please sign in to comment.