aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/diff-corrections
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/diff-corrections')
-rw-r--r--bundle/diff-corrections/autoload/diff_corrections.vim9
-rw-r--r--bundle/diff-corrections/plugin/diff_corrections.vim5
2 files changed, 10 insertions, 4 deletions
diff --git a/bundle/diff-corrections/autoload/diff_corrections.vim b/bundle/diff-corrections/autoload/diff_corrections.vim
new file mode 100644
index 0000000..c9e77ff
--- /dev/null
+++ b/bundle/diff-corrections/autoload/diff_corrections.vim
@@ -0,0 +1,9 @@
+function! diff_corrections#Run()
+ if &diff
+ if exists('g:colors_name') && g:colors_name ==# 'twilight256'
+ highlight Comment ctermfg=7
+ endif
+
+ set nocursorline
+ endif
+endfunction
diff --git a/bundle/diff-corrections/plugin/diff_corrections.vim b/bundle/diff-corrections/plugin/diff_corrections.vim
index c3dd8bc..858537e 100644
--- a/bundle/diff-corrections/plugin/diff_corrections.vim
+++ b/bundle/diff-corrections/plugin/diff_corrections.vim
@@ -1,8 +1,5 @@
augroup diff_corrections
autocmd!
- autocmd BufEnter * if &diff
- \| highlight Comment ctermfg=7
- \| set nocursorline
- \| endif
+ autocmd BufEnter * call diff_corrections#Run()
augroup END