Skip to content

Commit

Permalink
chore: document formatting with vim (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerdav authored Jun 1, 2024
1 parent 067cc68 commit 2782591
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/docs/09-commands-and-tools/02-ide-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,15 @@ require'nvim-treesitter.configs'.setup {
}
```

## Vim

Currently support for vim is limited. Configure formatting with the following VimScript:

```vim
set autoread
autocmd BufWritePost *.templ silent! execute "!PATH=\"$PATH:$(go env GOPATH)/bin\" templ fmt <afile> >/dev/null 2>&1" | redraw!
```

## Helix

https://helix-editor.com/
Expand Down

0 comments on commit 2782591

Please sign in to comment.