mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-12 11:53:47 -05:00
Add Option to disable python support lookup.
This commit is contained in:
@@ -50,16 +50,18 @@ highlight default link TodoDate PreProc
|
||||
highlight default link TodoProject Special
|
||||
highlight default link TodoContext Special
|
||||
|
||||
if has('python')
|
||||
let b:curdir = expand('<sfile>:p:h')
|
||||
let s:script_dir = b:curdir . "/python/"
|
||||
execute "pyfile " . s:script_dir. "todo.py"
|
||||
elseif has('python3')
|
||||
if g:todo_load_python
|
||||
if has('python')
|
||||
let b:curdir = expand('<sfile>:p:h')
|
||||
let s:script_dir = b:curdir . "/python/"
|
||||
execute "pyfile " . s:script_dir. "todo.py"
|
||||
elseif has('python3')
|
||||
let b:curdir = expand('<sfile>:p:h')
|
||||
let s:script_dir = b:curdir . "/python/"
|
||||
execute "py3file " . s:script_dir. "todo.py"
|
||||
else
|
||||
echom "Your version of vim has no python support. Overdue dates won't be highlighted"
|
||||
else
|
||||
echom "Your version of vim has no python support. Overdue dates won't be highlighted"
|
||||
endif
|
||||
endif
|
||||
|
||||
let b:current_syntax = "todo"
|
||||
|
||||
Reference in New Issue
Block a user