From 0ce2d843d6f588bb0c8c7eec6449171615dc56d9 Mon Sep 17 00:00:00 2001 From: Victor Schneuwly <72737162+VictorSchneuwly@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:27:52 +0000 Subject: [PATCH] Fix MaySet detection for Lua following Neovim update (#195) With version v0.10.0 of Neovim, the `:verbose` output added "(run Nvim with -V1 for more details)" to the previous message, which was simply "Last set from Lua". --- plugin/sensible.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 0fc26e0..c9387ae 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -26,7 +26,7 @@ function! s:MaySet(option) abort silent verbose execute 'setglobal all' a:option . '?' redir END endif - return out !~# " \\(\\~[\\/][^\n]*\\|Lua\\)$" + return out !~# " \\(\\~[\\/]\\|Lua\\)[^\n]*$" endfunction if s:MaySet('backspace')