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
Code folding is broken when go_highlight_types is enabled.
Steps to reproduce:
Take the following code:
package main
import "fmt"
type someStruct struct {
A string
B string
}
func main() {
test()
}
func test() {
s := someStruct{A: "a", B: "b"}
fmt.Println(s)
}
And the following vim configuration
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'fatih/vim-go'
set directory=/tmp/
syntax enable
set fdm=syntax
let g:go_fmt_command = "goimports"
let g:go_autodetect_gopath = 1
let g:go_list_type = "quickfix"
let g:go_def_mapping_enabled = 0
"let g:go_highlight_types = 1
Everything looks OK.
Now uncomment let g:go_highlight_types = 1 quit vim and reopen the .go file. The test function is incorrectly folded.
Configuration
Add here your current configuration and additional information that might be
useful, such as:
vimrc you used to reproduce : see above
vim version: 7.4.712
vim-go version: v1.12
go version: go1.8 linux/amd64
The text was updated successfully, but these errors were encountered:
Behavior
Code folding is broken when
go_highlight_types
is enabled.Steps to reproduce:
Take the following code:
And the following vim configuration
Everything looks OK.
Now uncomment
let g:go_highlight_types = 1
quit vim and reopen the .go file. Thetest
function is incorrectly folded.Configuration
Add here your current configuration and additional information that might be
useful, such as:
vimrc
you used to reproduce : see aboveThe text was updated successfully, but these errors were encountered: