update readme.md

pull/51/head
ray-x 3 years ago
parent 70d91c5443
commit 2781e7855f

@ -126,14 +126,34 @@ Supported by treesitter. TS provided better parse result compared to regular exp
Check [my treesitter config file](https://github.com/ray-x/dotfiles/blob/master/nvim/lua/modules/lang/treesitter.lua) on how to setup
textobjects. Also with treesitter-objects, you can move, swap the selected blocks of codes, which is fast and accurate.
## Go Tools update
| command | Description |
| --------------------------- | -------------------------------- |
| GoInstallBinary tool_name | `go install tool_name@latest` |
| GoUpdateBinary tool_name | `go re-install tool_name@latest` |
| GoInstallBinaries tool_name | `go install` all tools |
| GoUpdateBinaries tool_name | `go update` all tools |
## Go binaries install and update
Following go binary are used in `go.nvim` (depends on your setup)
- gofumpt
- golines
- goimports
- gorename
- gomodifytags
- gotests
- iferr
- impl
- fillstruct
- fixplurals
- fillswitch
- dlv
- ginkgo
- richgo
Normally if you run GoFmt and the configured binary(e.g. golines) was not installed, the plugin will install it for you. But the
first run of GoFmt may fail. It is recommended to install all binaries before using the plugin.
| command | Description |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| GoInstallBinary go_binary_name | use `go install go_binary_url@latest` to install tool, if installed will skip |
| GoUpdateBinary go_binary_name | use `go install go_binary_url@latest` Will force re-install if already installed, otherwise same as goInstallBinary |
| GoInstallBinaries go_binary_name | use `go install` to install all tools, skip the one installed |
| GoUpdateBinaries go_binary_name | use `go install` to update all tools to the latest version |
## Build and test

Loading…
Cancel
Save