Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 2.08 KB

README.md

File metadata and controls

41 lines (31 loc) · 2.08 KB

vim-colorful-go

vim-colorful-go is an addendum to vim-go's syntax highlighting. This plugin assumes you have vim-go installed and is untested outside that assumption.

Before After
Before Image 1 Image 1
Before Image 2 Image 2
Before Image 3 Image 3

Features

Mostly, this plugin highlights non-native types when appropriate. It assumes formatting matches the output of gofmt.

vim-colorful-go also uses the same highlighting option flags as vim-go.

Some things that are now highlighted:

  • types in type (...) blocks
  • type declarations in structs
  • types in function parameters
  • types in function returns
  • literal struct fields
  • ..probably more I can't remember

Install

vim-colorful-go follows the standard runtime path structure. You may use your favorite package manager. Below are some helper lines for popular package managers:

  • Pathogen
    • git clone https://github.com/ajswis/vim-colorful-go.git ~/.vim/bundle/vim-colorful-go
  • vim-plug
    • Plug 'ajswis/vim-colorful-go'
  • Vim packages
    • git clone https://github.com/ajswis/vim-colorful-go.git ~/.vim/pack/plugins/start/vim-colorful-go