mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 20:20:05 +08:00
fix Go lang layer mapping command bugs (#2265)
This commit is contained in:
parent
52f3fa4e33
commit
a651a017f6
@ -77,8 +77,8 @@ endfunction
|
||||
function! s:language_specified_mappings() abort
|
||||
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','a'],
|
||||
\ ':GoAlternate<CR>',
|
||||
\ 'go alternate', 0)
|
||||
\ ':GoAlternate',
|
||||
\ 'go alternate', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','b'],
|
||||
\ '<Plug>(go-build)',
|
||||
\ 'go build', 0)
|
||||
@ -98,8 +98,8 @@ function! s:language_specified_mappings() abort
|
||||
\ '<Plug>(go-def)',
|
||||
\ 'go def', 0)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','G'],
|
||||
\ ':GoGenerate<CR>',
|
||||
\ 'go generate', 0)
|
||||
\ ':GoGenerate',
|
||||
\ 'go generate', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','h'],
|
||||
\ '<Plug>(go-info)',
|
||||
\ 'go info', 0)
|
||||
@ -107,38 +107,38 @@ function! s:language_specified_mappings() abort
|
||||
\ '<Plug>(go-implements)',
|
||||
\ 'go implements', 0)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','I'],
|
||||
\ ':GoImpl<CR>',
|
||||
\ 'impl stubs', 0)
|
||||
\ ':GoImpl',
|
||||
\ 'impl stubs', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','k'],
|
||||
\ ':GoAddTags<CR>',
|
||||
\ 'add tags', 0)
|
||||
\ ':GoAddTags',
|
||||
\ 'add tags', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','K'],
|
||||
\ ':GoRemoveTags<CR>',
|
||||
\ 'remove tags', 0)
|
||||
\ ':GoRemoveTags',
|
||||
\ 'remove tags', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','l'],
|
||||
\ ':GoDecls<CR>',
|
||||
\ 'decl file', 0)
|
||||
\ ':GoDecls',
|
||||
\ 'decl file', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','L'],
|
||||
\ ':GoDeclsDir<CR>',
|
||||
\ 'decl dir', 0)
|
||||
\ ':GoDeclsDir',
|
||||
\ 'decl dir', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','m'],
|
||||
\ ':GoImports<CR>',
|
||||
\ 'format imports', 0)
|
||||
\ ':GoImports',
|
||||
\ 'format imports', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','M'],
|
||||
\ ':GoImport ',
|
||||
\ 'add import', 0)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','r'],
|
||||
\ ':GoReferrers<CR>',
|
||||
\ 'go referrers', 0)
|
||||
\ ':GoReferrers',
|
||||
\ 'go referrers', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','s'],
|
||||
\ ':GoFillStruct<CR>',
|
||||
\ 'fill struct', 0)
|
||||
\ ':GoFillStruct',
|
||||
\ 'fill struct', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','t'],
|
||||
\ '<Plug>(go-test)',
|
||||
\ 'go test', 0)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','v'],
|
||||
\ ':GoFreevars<CR>',
|
||||
\ 'freevars', 0)
|
||||
\ ':GoFreevars',
|
||||
\ 'freevars', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','x'],
|
||||
\ '<Plug>(go-run)',
|
||||
\ 'go run', 0)
|
||||
|
Loading…
Reference in New Issue
Block a user