mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 07:50:05 +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>
|
nnoremap <silent> <C-_> <Esc>:Ydc<CR>
|
||||||
endif
|
endif
|
||||||
endfunction
|
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
|
function! SpaceVim#layers#tools#health() abort
|
||||||
call SpaceVim#layers#tools#plugins()
|
call SpaceVim#layers#tools#plugins()
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
let s:sign_name = 'bookmarks'
|
let s:sign_name = 'bookmarks'
|
||||||
|
|
||||||
call sign_define(s:sign_name, {
|
call sign_define(s:sign_name, {
|
||||||
\ 'text' : '=>',
|
\ 'text' : g:bookmarks_sign_text,
|
||||||
\ 'texthl' : 'Normal'
|
\ 'texthl' : g:bookmarks_sign_highlight
|
||||||
\ })
|
\ })
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user