From bc11c25514af478af0478820317b9b8fe1a684f2 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Thu, 29 Oct 2015 17:20:25 -0400 Subject: [PATCH] add vim-go-coverlay --- .compton.conf | 2 +- .vimrc | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.compton.conf b/.compton.conf index ce77e26..1cfe30c 100644 --- a/.compton.conf +++ b/.compton.conf @@ -16,7 +16,7 @@ shadow-exclude = [ "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'", "_GTK_FRAME_EXTENTS@:c", - "window_type *= 'normal' && ! name ~= ''", + "window_type *= 'normal' && ! name ~= ''" ]; # shadow-exclude = "n:e:Notification"; # shadow-exclude-reg = "x10+0+0"; diff --git a/.vimrc b/.vimrc index 799e220..2d6d3ae 100644 --- a/.vimrc +++ b/.vimrc @@ -117,6 +117,7 @@ NeoBundle 'JuliaLang/julia-vim' NeoBundle 'tpope/vim-surround' NeoBundle 'farseer90718/vim-taskwarrior' NeoBundle 'fatih/vim-go' +NeoBundle 't-yuki/vim-go-coverlay' NeoBundle 'tpope/vim-abolish' "https://git.wincent.com/command-t.git call neobundle#end() @@ -378,6 +379,23 @@ function! LFixToggle(forced) endif endfunction +"au FileType go nmap C (go-clearlay) +"clear overlay +command -bang -nargs=? GoCoverlayT call GoCoverlayToggle(0) +function! GoCoverlayToggle(forced) + if exists("g:go_coverlay_t") && a:forced == 0 + unlet! g:go_coverlay_t + GoClearlay + "call (go-clearlay) + else + "call (go-coverlay) + GoCoverlay + let g:go_coverlay_t = "t" + endif +endfunction +" Toggle GoCoverlay +au FileType go nmap c :GoCoverlayT + " Make the Quickfix window respond well to commands (for instance, q to close, " Enter to select, etc). In tandem with the above. augroup QFixToggle