Skip to content

Commit

Permalink
Disable plugin in diff mode (see DanilaMihailov#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Suida committed Sep 13, 2021
1 parent 065d7fa commit 64c7228
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/beacon.vim
@@ -1,5 +1,7 @@
" do not load plugin twice (get weird errors)
if get(g:, "beacon_loaded", 0)
" do not load plugin:
" - twice (get weird errors)
" - in diff mode
if get(g:, "beacon_loaded", 0) || &diff
finish
endif

Expand Down

0 comments on commit 64c7228

Please sign in to comment.