Skip to content

Commit 6ff828b

Browse files
committed
doc: vim.g.loaded -> vim.g.loaded_netrw
1 parent c4ac723 commit 6ff828b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Setup should be run in a lua file or in a lua heredoc [:help lua-heredoc](https:
5959
-- examples for your init.lua
6060

6161
-- disable netrw at the very start of your init.lua (strongly advised)
62-
vim.g.loaded = 1
62+
vim.g.loaded_netrw = 1
6363
vim.g.loaded_netrwPlugin = 1
6464

6565
-- empty setup using defaults

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Setup should be run in a lua file or in a |lua-heredoc| if using in a vim file.
6666
-- examples for your init.lua
6767

6868
-- disable netrw at the very start of your init.lua (strongly advised)
69-
vim.g.loaded = 1
69+
vim.g.loaded_netrw = 1
7070
vim.g.loaded_netrwPlugin = 1
7171

7272
-- empty setup using defaults
@@ -383,7 +383,7 @@ Completely disable netrw
383383
It is strongly advised to eagerly disable netrw, due to race conditions at vim
384384
startup.
385385
Set the following at the very beginning of your `init.lua` / `init.vim`: >
386-
vim.g.loaded = 1
386+
vim.g.loaded_netrw = 1
387387
vim.g.loaded_netrwPlugin = 1
388388
<
389389
*nvim-tree.hijack_netrw*

0 commit comments

Comments
 (0)