From 4f3df59be709bf0d5c5c67dc804fde49abdc2700 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 12 Sep 2019 14:33:21 +0200 Subject: Improve guard so it works for no eof new line --- autoload/rust/debugging.vim | 2 ++ autoload/rust/delimitmate.vim | 2 ++ autoload/rust/tags.vim | 2 ++ 3 files changed, 6 insertions(+) (limited to 'autoload/rust') diff --git a/autoload/rust/debugging.vim b/autoload/rust/debugging.vim index 40a691c3..066e2451 100644 --- a/autoload/rust/debugging.vim +++ b/autoload/rust/debugging.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim let s:global_variable_list = [ @@ -102,4 +103,5 @@ 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 8d88a8f4..6707adc5 100644 --- a/autoload/rust/delimitmate.vim +++ b/autoload/rust/delimitmate.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate' " For this buffer, when delimitMate issues the `User delimitMate_map` @@ -43,4 +44,5 @@ endfunction " vim: set et sw=4 sts=4 ts=8: + endif diff --git a/autoload/rust/tags.vim b/autoload/rust/tags.vim index d3a3e645..21faaabb 100644 --- a/autoload/rust/tags.vim +++ b/autoload/rust/tags.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Tagbar support code, for the sake of not automatically overriding its " configuration in case Universal Ctags is detected. @@ -16,4 +17,5 @@ function! rust#tags#IsUCtags() abort endfunction " vim: set et sw=4 sts=4 ts=8: + endif -- cgit v1.2.3