sponsor Vim development Vim logo Vim Book Ad

tinygo.vim : TinyGo support to Vim

 script karma  Rating 0/0, Downloaded by 114  Comments, bugs, improvements  Vim wiki

created by
Masaaki Takasago
 
script type
utility
 
description
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.

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
    Vim8 + coc.nvim
    Neovim (native LSP client)
    Neovim + coc.nvim

The GitHub repository is here: https://github.com/sago35/tinygo.vim
 
install details
Extract in ~/.vim (~\vimfiles on Windows).

It depends on the following.

* gopls + LSP client (vim-lsp, coc.nvim, nvim native LSP client)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tinygo.vim.zip 0.2.0 2022-09-25 8.0 Masaaki Takasago Initial upload
ip used for rating: 18.191.189.85

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github