Only set list if user has not set it yet

This commit is contained in:
Victor Kareh
2017-02-16 12:55:15 -05:00
parent 312a80ff51
commit fe66ee58fa

View File

@@ -6,9 +6,12 @@ if exists("g:searchtasks_loaded") || &cp || v:version < 700
finish
endif
let g:searchtasks_list=["TODO", "FIXME", "XXX"]
let g:searchtasks_loaded=1
if !exists("g:searchtasks_list")
let g:searchtasks_list=["TODO", "FIXME", "XXX"]
endif
" Search tasks {{{
function s:SearchTasks(directory)
if a:directory