diff options
Diffstat (limited to '')
| -rw-r--r-- | autoload/rust.vim | 8 | ||||
| -rw-r--r-- | autoload/rust/debugging.vim | 8 | ||||
| -rw-r--r-- | autoload/rust/delimitmate.vim | 8 | ||||
| -rw-r--r-- | autoload/rustfmt.vim | 8 | 
4 files changed, 16 insertions, 16 deletions
diff --git a/autoload/rust.vim b/autoload/rust.vim index d5a2e29f..c513f03f 100644 --- a/autoload/rust.vim +++ b/autoload/rust.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 -   +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 +  finish +endif +  " Author: Kevin Ballard  " Description: Helper functions for Rust commands/mappings  " Last Modified: May 27, 2014 @@ -546,5 +548,3 @@ endfunction  " }}}1  " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/rust/debugging.vim b/autoload/rust/debugging.vim index ba91c3bd..caeef712 100644 --- a/autoload/rust/debugging.vim +++ b/autoload/rust/debugging.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 -   +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 +  finish +endif +  " For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim  let s:global_variable_list = [ @@ -101,5 +103,3 @@ function! rust#debugging#InfoToFile(filename) abort  endfunction  " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/rust/delimitmate.vim b/autoload/rust/delimitmate.vim index e99cc87d..5e599f6a 100644 --- a/autoload/rust/delimitmate.vim +++ b/autoload/rust/delimitmate.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 -   +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 +  finish +endif +  let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate'  " For this buffer, when delimitMate issues the `User delimitMate_map` @@ -44,5 +46,3 @@ endfunction  " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/rustfmt.vim b/autoload/rustfmt.vim index 7b8fdd91..59ab3d3b 100644 --- a/autoload/rustfmt.vim +++ b/autoload/rustfmt.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 -   +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 +  finish +endif +  " Author: Stephen Sugden <stephen@stephensugden.com>  "  " Adapted from https://github.com/fatih/vim-go @@ -248,5 +250,3 @@ endfunction  " vim: set et sw=4 sts=4 ts=8: - -endif  | 
