@@ -9,6 +9,12 @@
Loading
9 9
""
10 10
" @section vim#message, api-vim-message
11 11
" @parentsection api
12 +
" `vim#message` API provide functions for generating colored message in vim's
13 +
" command line.
14 +
"
15 +
" echo({hi}, {msg})
16 +
"
17 +
"   print message with {hi} highlight group.
12 18
13 19
14 20
let s:self = {}
@@ -22,6 +28,15 @@
Loading
22 28
  endtry
23 29
endfunction
24 30
31 +
function! s:self.echon(hl, msg) abort
32 +
  execute 'echohl' a:hl
33 +
  try
34 +
    echon a:msg
35 +
  finally
36 +
    echohl None
37 +
  endtry
38 +
endfunction
39 +
25 40
function! s:self.echomsg(hl, msg) abort
26 41
  execute 'echohl' a:hl
27 42
  try
@@ -42,20 +57,20 @@
Loading
42 57
endfunction
43 58
44 59
function! s:self.confirm(msg) abort
45 -
    echohl WarningMsg
46 -
    echon a:msg . '? (y or n) '
47 -
    echohl NONE
48 -
    let rst = nr2char(getchar())
49 -
    " clear the cmdline
50 -
    redraw!
51 -
    if rst =~? 'y' || rst == nr2char(13)
52 -
        return 1
53 -
    else
54 -
        return 0
55 -
    endif
60 +
  echohl WarningMsg
61 +
  echon a:msg . '? (y or n) '
62 +
  echohl NONE
63 +
  let rst = nr2char(getchar())
64 +
  " clear the cmdline
65 +
  redraw!
66 +
  if rst =~? 'y' || rst == nr2char(13)
67 +
    return 1
68 +
  else
69 +
    return 0
70 +
  endif
56 71
endfunction
57 72
58 73
59 74
function! SpaceVim#api#vim#message#get() abort
60 -
    return deepcopy(s:self)
75 +
  return deepcopy(s:self)
61 76
endfunction
Files Coverage
.SpaceVim.d/autoload/SpaceVim 0.00%
autoload 3.41%
bundle 2.54%
config 30.27%
ftplugin 23.33%
syntax 94.58%
.ci/common/github_commenter.vim 0.00%
after/syntax/help.vim 0.00%
colors/SpaceVim.vim 0.00%
filetype.vim 100.00%
ginit.vim 0.00%
init.vim 0.00%
test/vimrc 100.00%
vimrc 30.77%
Project Totals (1539 files) 3.36%
11257.19
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11257.18
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11253.15
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11253.14
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11253.17
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11253.16
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11253.19
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11253.18
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11257.15
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11257.14
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11257.17
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
11257.16
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
1
comment: off
2
codecov:
3
  branch: master
4
coverage:
5
  status:
6
    patch:
7
      default: false
8
    project:
9
      default: false  # disable the default status that measures entire project
10
      api:  # declare a new status context "api"
11
        target: 1%  # we always want 35% coverage here
12
        paths:
13
          - "autoload/SpaceVim/api/"  # only include coverage in "autoload/SpaceVim/api/" folder
14
      plugins:  # declare a new status context "api"
15
        target: 1%  # we always want 35% coverage here
16
        paths:
17
          - "autoload/SpaceVim/plugins/"  # only include coverage in "autoload/SpaceVim/api/" folder
18
      all:  # declare a new status context "all"
19
        target: 1%  # we always want 35% coverage here
20
        paths:
21
          - "!tests/"  # remove all files in "tests/"
22
          - "!bundle/"  # remove all files in "tests/"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading