mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
add some light comments for mark signs
This commit is contained in:
parent
fbf681ac29
commit
902099b82d
@ -165,11 +165,16 @@ function! IsValidFilename(filename)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Place sign with particular symbol at line
|
||||||
|
" ChatGippity
|
||||||
|
"
|
||||||
function! PlaceSign(id, symbol, prio, line_number)
|
function! PlaceSign(id, symbol, prio, line_number)
|
||||||
call sign_define(a:symbol, {'text': a:symbol})
|
call sign_define(a:symbol, {'text': a:symbol})
|
||||||
call sign_place(a:id, '', a:symbol, bufnr(''), {'lnum': a:line_number, 'priority': a:prio, 'text': a:symbol})
|
call sign_place(a:id, '', a:symbol, bufnr(''), {'lnum': a:line_number, 'priority': a:prio, 'text': a:symbol})
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Use signs to visualize marks and update for current buffer
|
||||||
|
"
|
||||||
function! UpdateMarkSigns()
|
function! UpdateMarkSigns()
|
||||||
" Reserved unique IDs for marks in case we want to remove in future
|
" Reserved unique IDs for marks in case we want to remove in future
|
||||||
" without wiping out all signs
|
" without wiping out all signs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user