-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from beauwilliams/setup
Setup refactor. Fixes #31
- Loading branch information
Showing
5 changed files
with
67 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
if exists('g:loaded_focus') | finish | endif | ||
|
||
let g:loaded_focus = 1 "Don't Reload Twice" | ||
let g:enabled_focus = 1 | ||
let g:enabled_focus = 1 "Focus is enabled when setup is run, we use this var to enable/disable/toggle | ||
|
||
"A vim best practise | ||
let s:save_cpo = &cpo | ||
set cpo&vim | ||
|
||
|
||
"hopefully focus is not loaded if we run vim with focus disabled i.e `nvim +DisableFocus` | ||
if g:enabled_focus == 1 | ||
runtime autoload/focus.vim | ||
endif | ||
|
||
|
||
|
||
let &cpo = s:save_cpo | ||
unlet s:save_cpo |