Без опису

Andrew Swistak 2699167e10 Add README.md 8 роки тому
after eb653fe4ec Match listOfTypes less aggressively 8 роки тому
README.md 2699167e10 Add README.md 8 роки тому

README.md

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.

Image 1

Image 2

Features

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

  • Highlight types in var (...) blocks
  • Highlight types in receivers
  • Highlight types in structs
  • Highlight types in function parameters
  • Highlight types in function returns
  • Highlight methods/functions the same
  • Highlight literal struct fields
  • Uses the same highlighting option flags as vim-go
  • ..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