diff options
Diffstat (limited to 'autoload/hints.vim')
-rw-r--r-- | autoload/hints.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/hints.vim b/autoload/hints.vim index 5a74386..7ab8797 100644 --- a/autoload/hints.vim +++ b/autoload/hints.vim @@ -54,7 +54,7 @@ function! s:display_hints(hints) abort "call nvim_buf_set_virtual_text( " \ 0, g:hints_ns, line - 1, [[tag, "Number"]], {}) - exec printf("sign define tag_%s text=%s texthl=LineNr", tag, tag) + exec printf("sign define tag_%s text=%s texthl=Number", tag, tag) exec printf("sign place %d line=%d name=tag_%s file=%s", s, line, tag, expand('%:p')) let s += 1 @@ -97,10 +97,10 @@ function! hints#runHints(visual) abort let line = get(hints, nr2char(c1) . nr2char(c2), -1) if line >= 0 - norm m' - if len(a:visual) - exec "norm gv" + if a:visual == 'o' + norm! V endif + norm m' call cursor(line, 1) norm ^ endif |