Skip to content

Commit

Permalink
handle fatih/vim-go dropping guru support
Browse files Browse the repository at this point in the history
  • Loading branch information
atweiden committed Mar 29, 2024
1 parent d1c13ac commit 890616e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
15 changes: 6 additions & 9 deletions .vim/ftplugin/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,20 @@ g:go_gopls_enabled = 0
# use gofmt for :GoFmt
g:go_fmt_command = 'gofmt'

# use guru for :GoInfo
g:go_info_mode = 'guru'

# use goimports for :GoImports
g:go_imports_mode = 'goimports'

# use guru for :GoDef
g:go_def_mode = 'guru'
# use godef for :GoDef
g:go_def_mode = 'godef'

# use fillstruct for :GoFillStruct
g:go_fillstruct_mode = 'fillstruct'

# use guru for :GoReferrers
g:go_referrers_mode = 'guru'
# XXX: use guru (deprecated) for :GoReferrers
#g:go_referrers_mode = 'guru'

# use guru for :GoImplements
g:go_implements_mode = 'guru'
# XXX: use guru (deprecated) for :GoImplements
#g:go_implements_mode = 'guru'

# use golangci-lint for :GoMetaLinter
g:go_metalinter_command = 'golangci-lint'
Expand Down
15 changes: 6 additions & 9 deletions .vim/ftplugin/gomod.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,20 @@ g:go_gopls_enabled = 0
# use gofmt for :GoFmt
g:go_fmt_command = 'gofmt'

# use guru for :GoInfo
g:go_info_mode = 'guru'

# use goimports for :GoImports
g:go_imports_mode = 'goimports'

# use guru for :GoDef
g:go_def_mode = 'guru'
# use godef for :GoDef
g:go_def_mode = 'godef'

# use fillstruct for :GoFillStruct
g:go_fillstruct_mode = 'fillstruct'

# use guru for :GoReferrers
g:go_referrers_mode = 'guru'
# XXX: use guru (deprecated) for :GoReferrers
#g:go_referrers_mode = 'guru'

# use guru for :GoImplements
g:go_implements_mode = 'guru'
# XXX: use guru (deprecated) for :GoImplements
#g:go_implements_mode = 'guru'

# use golangci-lint for :GoMetaLinter
g:go_metalinter_command = 'golangci-lint'
Expand Down

0 comments on commit 890616e

Please sign in to comment.