plugins - Added vim-go
This commit is contained in:
parent
a9b19694d1
commit
588d663a76
4 changed files with 46 additions and 5 deletions
|
@ -1,4 +0,0 @@
|
||||||
" Terminal support
|
|
||||||
let g:go_term_enabled = 1
|
|
||||||
let g:go_term_mode = "split"
|
|
||||||
let g:go_term_height = 15
|
|
|
@ -1 +0,0 @@
|
||||||
NeoBundle 'fatih/vim-go'
|
|
14
plugins/vim-go.cfg.vim
Normal file
14
plugins/vim-go.cfg.vim
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
" Terminal support
|
||||||
|
let g:go_term_enabled = 1
|
||||||
|
let g:go_term_mode = "split"
|
||||||
|
let g:go_term_height = 15
|
||||||
|
|
||||||
|
" Highlighting
|
||||||
|
let g:go_highlight_functions = 1
|
||||||
|
let g:go_highlight_function_calls = 1
|
||||||
|
let g:go_highlight_structs = 1
|
||||||
|
let g:go_highlight_operators = 1
|
||||||
|
let g:go_highlight_build_constraints = 1
|
||||||
|
|
||||||
|
" Formatting
|
||||||
|
let g:go_fmt_command = 'gopls'
|
32
plugins/vim-go.load.vim
Normal file
32
plugins/vim-go.load.vim
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
call dein#add('fatih/vim-go', #{
|
||||||
|
\ lazy: 1,
|
||||||
|
\ merge_ftdetect: v:true,
|
||||||
|
\ on_ft: ['go', 'gohtmltmpl', 'gosum', 'gowork'],
|
||||||
|
\ on_cmd: [
|
||||||
|
\ 'GoReportGitHubIssue', 'GoPath', 'GoImport',
|
||||||
|
\ 'GoImportAs', 'GoDrop', 'GoLint', 'GoDoc',
|
||||||
|
\ 'GoDocBrowser', 'GoFmt', 'GoImports', 'GoPlay',
|
||||||
|
\ 'GoVet', 'GoDef', 'GoDefType', 'GoDefStack',
|
||||||
|
\ 'GoDefStackClear', 'GoDefPop', 'GoRun', 'GoBuild',
|
||||||
|
\ 'GoGenerate', 'GoInfo', 'GoInstall', 'GoTest',
|
||||||
|
\ 'GoTestFile', 'GoTestFunc', 'GoTestCompile',
|
||||||
|
\ 'GoCoverage', 'GoCoverageToggle', 'GoCoverageClear',
|
||||||
|
\ 'GoCoverageBrowser', 'GoCoverageOverlay',
|
||||||
|
\ 'GoErrCheck', 'GoFiles', 'GoDeps',
|
||||||
|
\ 'GoInstallBinaries', 'GoUpdateBinaries',
|
||||||
|
\ 'GoImplements', 'GoRename', 'GoGuruScope',
|
||||||
|
\ 'GoCallees', 'GoCallers', 'GoDescribe', 'GoCallstack',
|
||||||
|
\ 'GoFreevars', 'GoChannelPeers', 'GoReferrers',
|
||||||
|
\ 'GoSameIds', 'GoSameIdsClear', 'GoSameIdsToggle',
|
||||||
|
\ 'GoSameIdsAutoToggle', 'GoMetaLinter',
|
||||||
|
\ 'GoDiagnostics', 'GoBuildTags', 'AsmFmt',
|
||||||
|
\ 'GoAlternate', 'GoPointsTo', 'GoWhicherrs', 'GoDecls',
|
||||||
|
\ 'GoDeclsDir', 'GoImpl', 'GoAddTags', 'GoRemoveTags',
|
||||||
|
\ 'GoAutoTypeInfoToggle', 'GoFmtAutoSaveToggle',
|
||||||
|
\ 'GoModFmtAutoSaveToggle', 'GoAsmFmtAutoSaveToggle',
|
||||||
|
\ 'GoMetaLinterAutoSaveToggle',
|
||||||
|
\ 'GoTemplateAutoCreateToggle', 'GoKeyify',
|
||||||
|
\ 'GoFillStruct', 'GoIfErr', 'GoModFmt', 'GoModReload',
|
||||||
|
\ 'GoAddWorkspace', 'GoLSPDebugBrowser', 'GoExtract'
|
||||||
|
\ ],
|
||||||
|
\ })
|
Loading…
Reference in a new issue