mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-11 19:33:48 -05:00
Add Option to disable python support lookup.
This commit is contained in:
@@ -56,5 +56,13 @@ date of creation: >
|
|||||||
r - replace existing date (default)
|
r - replace existing date (default)
|
||||||
n - do nothing
|
n - do nothing
|
||||||
|
|
||||||
|
*'g:todo_existing_date'*
|
||||||
|
Specify if the plugin should load the python module. Useful if you use Neovim
|
||||||
|
for example or if perhaps you just don't have/want python for vim: >
|
||||||
|
let g:todo_load_python = 1
|
||||||
|
<
|
||||||
|
1 - Load (default)
|
||||||
|
0 - Don't load
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
vim:ft=help:et:ts=2:sw=2:sts=2:norl
|
vim:ft=help:et:ts=2:sw=2:sts=2:norl
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ highlight default link TodoDate PreProc
|
|||||||
highlight default link TodoProject Special
|
highlight default link TodoProject Special
|
||||||
highlight default link TodoContext Special
|
highlight default link TodoContext Special
|
||||||
|
|
||||||
|
if g:todo_load_python
|
||||||
if has('python')
|
if has('python')
|
||||||
let b:curdir = expand('<sfile>:p:h')
|
let b:curdir = expand('<sfile>:p:h')
|
||||||
let s:script_dir = b:curdir . "/python/"
|
let s:script_dir = b:curdir . "/python/"
|
||||||
@@ -61,5 +62,6 @@ elseif has('python3')
|
|||||||
else
|
else
|
||||||
echom "Your version of vim has no python support. Overdue dates won't be highlighted"
|
echom "Your version of vim has no python support. Overdue dates won't be highlighted"
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
let b:current_syntax = "todo"
|
let b:current_syntax = "todo"
|
||||||
|
|||||||
Reference in New Issue
Block a user