add vim-go-coverlay
This commit is contained in:
parent
e79c8256ae
commit
bc11c25514
2 changed files with 19 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
18
.vimrc
18
.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 <leader>C <Plug>(go-clearlay)
|
||||
"clear overlay
|
||||
command -bang -nargs=? GoCoverlayT call GoCoverlayToggle(<bang>0)
|
||||
function! GoCoverlayToggle(forced)
|
||||
if exists("g:go_coverlay_t") && a:forced == 0
|
||||
unlet! g:go_coverlay_t
|
||||
GoClearlay
|
||||
"call <Plug>(go-clearlay)
|
||||
else
|
||||
"call <Plug>(go-coverlay)
|
||||
GoCoverlay
|
||||
let g:go_coverlay_t = "t"
|
||||
endif
|
||||
endfunction
|
||||
" Toggle GoCoverlay
|
||||
au FileType go nmap <leader>c :GoCoverlayT<CR>
|
||||
|
||||
" Make the Quickfix window respond well to commands (for instance, q to close,
|
||||
" Enter to select, etc). In tandem with the above.
|
||||
augroup QFixToggle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue