From b822bad54c552c573f2371ddeb0350e4864e22b7 Mon Sep 17 00:00:00 2001 From: Kai Hoewelmeyer Date: Fri, 7 Oct 2022 10:17:09 +0200 Subject: [PATCH] fix: when filetype is changed, reconsider excluded filetypes Some plugins, e.g., fzf-lua, only set the filetype after creating a new buffer. To exclude the later-set filetype correctly, rerun the setup. --- plugin/trailing-whitespace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/trailing-whitespace.vim b/plugin/trailing-whitespace.vim index 81cbd2b..668b093 100644 --- a/plugin/trailing-whitespace.vim +++ b/plugin/trailing-whitespace.vim @@ -15,7 +15,7 @@ endfunction " Highlight EOL whitespace, http://vim.wikia.com/wiki/Highlight_unwanted_spaces highlight default ExtraWhitespace ctermbg=darkred guibg=darkred autocmd ColorScheme * highlight default ExtraWhitespace ctermbg=darkred guibg=darkred -autocmd BufRead,BufNew * if ShouldMatchWhitespace() | match ExtraWhitespace /\\\@