Skip to content

Commit 0c1cb2e

Browse files
committed
Remove support for GoKeyify
Standalone keyify tool has been removed from the go-tools repository and integrated with gopls. dominikh/go-tools#769
1 parent feef9b3 commit 0c1cb2e

File tree

4 files changed

+0
-85
lines changed

4 files changed

+0
-85
lines changed

autoload/go/keyify.vim

-64
This file was deleted.

doc/vim-go.txt

-15
Original file line numberDiff line numberDiff line change
@@ -765,21 +765,6 @@ CTRL-t
765765

766766
Toggles |'g:go_template_autocreate'|.
767767

768-
*:GoKeyify*
769-
:GoKeyify
770-
771-
Uses `keyify` to turn unkeyed struct literals into keyed ones.
772-
773-
For example:
774-
>
775-
Person{"John", "Smith"}
776-
<
777-
Becomes:
778-
>
779-
Person{
780-
Name: "John",
781-
Surname: "Smith",
782-
}
783768
<
784769
*:GoFillStruct*
785770
:GoFillStruct

ftplugin/go/commands.vim

-5
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,6 @@ command! -nargs=* -complete=customlist,go#impl#Complete GoImpl call go#impl#Impl
9191
" -- template
9292
command! -nargs=0 GoTemplateAutoCreateToggle call go#template#ToggleAutoCreate()
9393

94-
" -- keyify
95-
if go#package#InGOPATH()
96-
command! -nargs=0 GoKeyify call go#keyify#Keyify()
97-
endif
98-
9994
" -- fillstruct
10095
command! -nargs=0 GoFillStruct call go#fillstruct#FillStruct()
10196

plugin/go.vim

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ let s:packages = {
5454
\ 'gorename': ['golang.org/x/tools/cmd/gorename@master'],
5555
\ 'gotags': ['github.com/jstemmer/gotags@master'],
5656
\ 'impl': ['github.com/josharian/impl@main'],
57-
\ 'keyify': ['honnef.co/go/tools/cmd/keyify@master'],
5857
\ 'motion': ['github.com/fatih/motion@latest'],
5958
\ 'iferr': ['github.com/koron/iferr@master'],
6059
\ }

0 commit comments

Comments
 (0)