|
|
@ -435,14 +435,15 @@ generate method stubs for implementing an interface
|
|
|
|
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
|
|
|
|
````
|
|
|
|
```
|
|
|
|
:GoImpl {receiver} {interface}
|
|
|
|
:GoImpl {receiver} {interface}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Also, you can put the cursor on the struct and run
|
|
|
|
Also, you can put the cursor on the struct and run
|
|
|
|
|
|
|
|
|
|
|
|
```vim
|
|
|
|
```
|
|
|
|
:GoImpl {interface}
|
|
|
|
:GoImpl {interface}
|
|
|
|
````
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
e.g:
|
|
|
|
e.g:
|
|
|
|
|
|
|
|
|
|
|
@ -1196,9 +1197,10 @@ And run
|
|
|
|
:TSInstall gotmpl
|
|
|
|
:TSInstall gotmpl
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
The plugin injects the tmpl to html so you should see this:
|
|
|
|
The plugin injects the tmpl to html syntax so you should see this:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![image](https://github.com/ray-x/go.nvim/assets/1681295/7d11eb96-4803-418b-b056-336163ed492b)
|
|
|
|
|
|
|
|
|
|
|
|
![gohtmltmpl](https://gist.github.com/assets/1681295/b6bcd1b3-94c4-4b34-9098-4cbd1ab8669e.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Integrate null-ls
|
|
|
|
## Integrate null-ls
|
|
|
|
|
|
|
|
|
|
|
|