mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:40:06 +08:00
feat(bookmark): custom sign text and highlight
This commit is contained in:
parent
180493c1b5
commit
f759826426
@ -62,6 +62,10 @@ function! SpaceVim#layers#tools#config() abort
|
||||
nnoremap <silent> <C-_> <Esc>:Ydc<CR>
|
||||
endif
|
||||
endfunction
|
||||
function! SpaceVim#layers#tools#set_variable(var) abort
|
||||
let g:bookmarks_sign_text = get(a:var, 'bookmarks_sign_text', '=>')
|
||||
let g:bookmarks_sign_highlight = get(a:var, 'bookmarks_sign_highlight', 'Normal')
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#tools#health() abort
|
||||
call SpaceVim#layers#tools#plugins()
|
||||
|
@ -9,8 +9,8 @@
|
||||
let s:sign_name = 'bookmarks'
|
||||
|
||||
call sign_define(s:sign_name, {
|
||||
\ 'text' : '=>',
|
||||
\ 'texthl' : 'Normal'
|
||||
\ 'text' : g:bookmarks_sign_text,
|
||||
\ 'texthl' : g:bookmarks_sign_highlight
|
||||
\ })
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user