Skip to content

Commit b67985b

Browse files
committed
Merge pull request #208 from markwoodhall/no-python
#183 Add checks before exporting functionality that requires python
2 parents 03ec1e1 + b134f42 commit b67985b

File tree

7 files changed

+30
-0
lines changed

7 files changed

+30
-0
lines changed

autoload/OmniSharp.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if !has('python')
2+
finish
3+
endif
4+
15
let s:save_cpo = &cpo
26
set cpo&vim
37

ftplugin/cs/OmniSharp.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if !has('python')
2+
finish
3+
endif
4+
15
"Set a default value for the server address
26
if !exists('g:omnicomplete_fetch_full_documentation')
37
let g:omnicomplete_fetch_full_documentation = 0

plugin/OmniSharp.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
if !has('python')
2+
echoerr 'Error: OmniSharp requires Vim compiled with +python'
3+
finish
4+
endif
5+
16
if exists('g:OmniSharp_loaded')
27
finish
38
endif

syntax_checkers/cs/codecheck.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if !has('python')
2+
finish
3+
endif
4+
15
if exists("g:loaded_syntastic_cs_code_checker")
26
finish
37
endif

syntax_checkers/cs/issues.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if !has('python')
2+
finish
3+
endif
4+
15
if exists("g:loaded_syntastic_cs_issues_checker")
26
finish
37
endif

syntax_checkers/cs/semantic.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
if !has('python')
2+
finish
3+
endif
4+
15
if exists("g:loaded_syntastic_cs_semantic_checker")
26
finish
37
endif
8+
49
let g:loaded_syntastic_cs_semantic_checker = 1
510

611
let s:save_cpo = &cpo

syntax_checkers/cs/syntax.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if !has('python')
2+
finish
3+
endif
4+
15
if exists("g:loaded_syntastic_cs_syntax_checker")
26
finish
37
endif

0 commit comments

Comments
 (0)