You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try the following code in vim, with only vim-go and any color scheme. Look at the second last line.
package main
typeVideostruct {
IDstring`json:"id,omitempty"`URLstring`json:"url,omitempty"`
}
funcmain() {
v:=&Video{}
}
Configuration
call plug#begin('~/.config/nvim/plugged')
Plug 'fatih/vim-go'
call plug#end()
let g:go_auto_sameids = 1
let g:go_auto_type_info = 1
let g:go_fmt_command='goimports'
let g:go_highlight_build_constraints = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_operators = 1
let g:go_highlight_structs = 1
let g:go_highlight_types = 1
Screenshots
The text was updated successfully, but these errors were encountered:
This is caused by cfa9713 (my fault I'm afraid). I don't think we need to add the highlight offset anymore since that patch. Let me test and push a PR.
Behavior
Last character of type being colored incorrectly.
Steps to reproduce:
Try the following code in vim, with only
vim-go
and any color scheme. Look at the second last line.Configuration
Screenshots
The text was updated successfully, but these errors were encountered: