Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
momaek committed Apr 19, 2021
1 parent 670400a commit 0c636a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ set rtp+=$GOPATH/src/github.com/momaek/formattag/vim
```
If you have multiple entries in your GOPATH, replace $GOPATH with the right value.

If you're using go mod, replace $GOPATH with $GOMODCACH:
```
set rtp+=$GOMODCACH/github.com/momaek/formattag@{version}/vim
```

Running `:PrettyTag` will run formattag on the current file.

Optionally, add this to your `~/.vimrc` to automatically run `formattag` on :w
Expand Down

0 comments on commit 0c636a2

Please sign in to comment.