Allow user to override list of tasks before loading the plugin.

This solves a bug where the user adds `let g:searchtasks_list=...` in
their `.vimrc` file and it gets set before the plugin is loaded, thus
calling `finish` on first load.
This commit is contained in:
Victor Kareh
2017-02-16 12:35:17 -05:00
parent f9a73efb94
commit 312a80ff51

View File

@@ -2,12 +2,12 @@
" Maintainer: Gilson Filho <http://gilsondev.com>
" Version: 1.0
if exists("g:searchtasks_list") || &cp || v:version < 700
if exists("g:searchtasks_loaded") || &cp || v:version < 700
finish
endif
let g:searchtasks_list=["TODO", "FIXME", "XXX"]
let g:searchtasks_loaded=1
" Search tasks {{{
function s:SearchTasks(directory)