doc: vim.g.loaded -> vim.g.loaded_netrw

This commit is contained in:
Alexander Courtis 2022-10-15 10:50:07 +11:00
parent c4ac723a83
commit 6ff828b25b
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ Setup should be run in a lua file or in a lua heredoc [:help lua-heredoc](https:
-- examples for your init.lua -- examples for your init.lua
-- disable netrw at the very start of your init.lua (strongly advised) -- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded = 1 vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1 vim.g.loaded_netrwPlugin = 1
-- empty setup using defaults -- empty setup using defaults

View File

@ -66,7 +66,7 @@ Setup should be run in a lua file or in a |lua-heredoc| if using in a vim file.
-- examples for your init.lua -- examples for your init.lua
-- disable netrw at the very start of your init.lua (strongly advised) -- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded = 1 vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1 vim.g.loaded_netrwPlugin = 1
-- empty setup using defaults -- empty setup using defaults
@ -383,7 +383,7 @@ Completely disable netrw
It is strongly advised to eagerly disable netrw, due to race conditions at vim It is strongly advised to eagerly disable netrw, due to race conditions at vim
startup. startup.
Set the following at the very beginning of your `init.lua` / `init.vim`: > Set the following at the very beginning of your `init.lua` / `init.vim`: >
vim.g.loaded = 1 vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1 vim.g.loaded_netrwPlugin = 1
< <
*nvim-tree.hijack_netrw* *nvim-tree.hijack_netrw*