https://github.com/ajswis/vim-colorful-go
Extended highlighting rules for vim-go
https://github.com/ajswis/vim-colorful-go
golang syntax-highlighting vim vim-go
Last synced: about 2 months ago
JSON representation
Extended highlighting rules for vim-go
- Host: GitHub
- URL: https://github.com/ajswis/vim-colorful-go
- Owner: ajswis
- Created: 2017-08-05T19:36:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-03T01:37:13.000Z (over 7 years ago)
- Last Synced: 2025-04-08T01:40:00.260Z (about 1 year ago)
- Topics: golang, syntax-highlighting, vim, vim-go
- Language: Vim script
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-colorful-go
vim-colorful-go is an addendum to [vim-go](https://github.com/fatih/vim-go)'s
syntax highlighting. This plugin assumes you have
[vim-go](https://github.com/fatih/vim-go) installed and is untested outside that
assumption.
| Before | After |
| --- | --- |
|  |  |
|  |  |
|  |  |
## 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](https://github.com/tpope/vim-pathogen)
* `git clone https://github.com/ajswis/vim-colorful-go.git ~/.vim/bundle/vim-colorful-go`
* [vim-plug](https://github.com/junegunn/vim-plug)
* `Plug 'ajswis/vim-colorful-go'`
* [Vim packages](http://vimhelp.appspot.com/repeat.txt.html#packages)
* `git clone https://github.com/ajswis/vim-colorful-go.git ~/.vim/pack/plugins/start/vim-colorful-go`