Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sago35/tinygo.vim
TinyGo support to Vim and Neovim
https://github.com/sago35/tinygo.vim
coc neovim nvim tinygo vim
Last synced: 18 days ago
JSON representation
TinyGo support to Vim and Neovim
- Host: GitHub
- URL: https://github.com/sago35/tinygo.vim
- Owner: sago35
- License: mit
- Created: 2021-03-02T14:45:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T15:10:23.000Z (about 1 year ago)
- Last Synced: 2024-10-11T11:56:42.363Z (about 1 month ago)
- Topics: coc, neovim, nvim, tinygo, vim
- Language: Vim Script
- Homepage: https://www.vim.org/scripts/script.php?script_id=6028
- Size: 361 KB
- Stars: 20
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tinygo.vim
This is a simple extension to add TinyGo support to Vim and Neovim. Add
environment variables for tinygo and restart LSP-server. Using tinygo.vim, you
can easily integrate with gopls.![](./tinygo-target-vim.gif)
## Installing
```
Plug 'sago35/tinygo.vim'
```## Usage
If an argument is specified, vim-lsp will be restarted with that target
setting. If no argument is specified, it will open a list of targets.
In that case, target can be selected by pressing ENTER.```
:TinygoTarget open a list of targets.
:TinygoTarget [target] LSP-server will be restarted with that target setting
:TinygoTarget - stop integration
```## Support
* Vim8 + [vim-lsp](https://github.com/prabirshrestha/vim-lsp)
* Vim8 + [coc.nvim](https://github.com/neoclide/coc.nvim)
* Neovim (native LSP client)
* Neovim + [coc.nvim](https://github.com/neoclide/coc.nvim)## for Neovim user
If you are a Neovim user, you may want to try the native plugin.
* [pcolladosoto/tinygo.nvim](https://github.com/pcolladosoto/tinygo.nvim)
## LICENSE
MIT