1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:30:05 +08:00

feat(bookmark): custom sign text and highlight

This commit is contained in:
Eric Wong 2024-03-29 00:22:03 +08:00
parent 180493c1b5
commit f759826426
2 changed files with 6 additions and 2 deletions

View File

@ -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()

View File

@ -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
\ })