mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-08 11:03:47 -05:00
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".
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user