mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
feat(defaults): set g:netrw_use_errorwindow = 0 #24179
Problem: netrw uses a bespoke window to show messages. Solution: change the default so that netrw uses normal vim :echoerr
This commit is contained in:
parent
7968322e7a
commit
8758c6fb87
@ -211,10 +211,8 @@ let g:netrw_localmovecmdopt = ""
|
|||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" Default values for netrw's global protocol variables {{{2
|
" Default values for netrw's global protocol variables {{{2
|
||||||
if (v:version > 802 || (v:version == 802 && has("patch486"))) && has("balloon_eval") && !exists("s:initbeval") && !exists("g:netrw_nobeval") && has("syntax") && exists("g:syntax_on") && has("mouse")
|
if !exists("g:netrw_use_errorwindow")
|
||||||
call s:NetrwInit("g:netrw_use_errorwindow",2)
|
let g:netrw_use_errorwindow = 0
|
||||||
else
|
|
||||||
call s:NetrwInit("g:netrw_use_errorwindow",1)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists("g:netrw_dav_cmd")
|
if !exists("g:netrw_dav_cmd")
|
||||||
|
@ -439,12 +439,10 @@ settings are described below, in |netrw-browser-options|, and in
|
|||||||
|
|
||||||
*g:netrw_use_errorwindow* =2: messages from netrw will use a popup window
|
*g:netrw_use_errorwindow* =2: messages from netrw will use a popup window
|
||||||
Move the mouse and pause to remove the popup window.
|
Move the mouse and pause to remove the popup window.
|
||||||
(default value if popup windows are available)
|
|
||||||
=1 : messages from netrw will use a separate one
|
=1 : messages from netrw will use a separate one
|
||||||
line window. This window provides reliable
|
line window. This window provides reliable
|
||||||
delivery of messages.
|
delivery of messages.
|
||||||
(default value if popup windows are not available)
|
=0 : (default) messages from netrw will use echoerr ;
|
||||||
=0 : messages from netrw will use echoerr ;
|
|
||||||
messages don't always seem to show up this
|
messages don't always seem to show up this
|
||||||
way, but one doesn't have to quit the window.
|
way, but one doesn't have to quit the window.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user