Fancy sign text

22 views
Skip to first unread message

Ben Fritz

unread,
Feb 15, 2012, 1:46:59 PM2/15/12
to eclim-dev
I don't like the default ">" and ">>" sign text, so I made the
following little patch to let me customize them. With the patch, I'm
partial to the following (in DejaVu Sans Mono font):

let g:EclimQuickfixSignText = "\u25b8"
let g:EclimLoclistSignText = "\u21e8"

(note, I just installed from the repository I pulled today, but this
patch is against my vim config, not the git repository)

# HG changeset patch
# User Ben Fritz <btf...@rockwellcollins.com>
# Date 1329331355 21600
# Node ID b55232f33a1bcb9774f3a958e83e96647426adec
# Parent 1ae30133d7cb42554f56801b94c1811ca333102b
Add options to show fancy unicode text for the signs instead of
the stupid-looking > and >> signs.

diff -r 1ae30133d7cb -r b55232f33a1b eclim/autoload/eclim/display/
signs.vim
--- a/eclim/autoload/eclim/display/signs.vim Wed Feb 15 12:39:06 2012
-0600
+++ b/eclim/autoload/eclim/display/signs.vim Wed Feb 15 12:42:35 2012
-0600
@@ -34,6 +34,14 @@
if !exists("g:EclimUserSignHighlight")
let g:EclimUserSignHighlight = g:EclimInfoHighlight
endif
+
+if !exists("g:EclimQuickfixSignText")
+ let g:EclimQuickfixSignText = '> '
+endif
+
+if !exists("g:EclimLoclistSignText")
+ let g:EclimLoclistSignText = '>>'
+endif
" }}}

" Define(name, text, highlight) {{{
@@ -270,7 +278,7 @@
\ 'bufnr("%") == v:val.bufnr')
let loclist = filter(getloclist(0), 'bufnr("%") == v:val.bufnr')

- for [list, marker, prefix] in [[qflist, '> ', 'qf_'], [loclist,
'>>', '']]
+ for [list, marker, prefix] in [[qflist, g:EclimQuickfixSignText,
'qf_'], [loclist, g:EclimLoclistSignText, '']]
if g:EclimSignLevel >= 4
let info = filter(copy(list), 'v:val.type == "" ||
tolower(v:val.type) == "i"')
call eclim#display#signs#Define(prefix . 'info', marker,
g:EclimInfoHighlight)

Eric Van Dewoestine

unread,
Feb 17, 2012, 12:24:57 AM2/17/12
to ecli...@googlegroups.com

Looks like a good additions. I'll add it as soon as I get a chance.

--
eric

Reply all
Reply to author
Forward
0 new messages