Skip to content

ajswis/vim-colorful-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 

Repository files navigation

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

About

Extended highlighting rules for vim-go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published