mirror of
https://github.com/gilsondev/searchtasks.vim.git
synced 2025-11-08 09:53:48 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user