From 588d663a7666b18c96e7f064aa2547ae1c8e05b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Sat, 24 Jun 2023 15:45:14 +0200 Subject: [PATCH] plugins - Added vim-go --- bundles-init/vim-go.cfg.vim | 4 ---- bundles-init/vim-go.load.vim | 1 - plugins/vim-go.cfg.vim | 14 ++++++++++++++ plugins/vim-go.load.vim | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 5 deletions(-) delete mode 100644 bundles-init/vim-go.cfg.vim delete mode 100644 bundles-init/vim-go.load.vim create mode 100644 plugins/vim-go.cfg.vim create mode 100644 plugins/vim-go.load.vim diff --git a/bundles-init/vim-go.cfg.vim b/bundles-init/vim-go.cfg.vim deleted file mode 100644 index f210223..0000000 --- a/bundles-init/vim-go.cfg.vim +++ /dev/null @@ -1,4 +0,0 @@ -" Terminal support -let g:go_term_enabled = 1 -let g:go_term_mode = "split" -let g:go_term_height = 15 diff --git a/bundles-init/vim-go.load.vim b/bundles-init/vim-go.load.vim deleted file mode 100644 index fdddfa5..0000000 --- a/bundles-init/vim-go.load.vim +++ /dev/null @@ -1 +0,0 @@ -NeoBundle 'fatih/vim-go' diff --git a/plugins/vim-go.cfg.vim b/plugins/vim-go.cfg.vim new file mode 100644 index 0000000..3715b23 --- /dev/null +++ b/plugins/vim-go.cfg.vim @@ -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' diff --git a/plugins/vim-go.load.vim b/plugins/vim-go.load.vim new file mode 100644 index 0000000..20afe10 --- /dev/null +++ b/plugins/vim-go.load.vim @@ -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' + \ ], + \ })