diff --git a/README.md b/README.md index 008062b6..83c6d775 100644 --- a/README.md +++ b/README.md @@ -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 -- 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 -- empty setup using defaults diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 3fe47377..fbf810f0 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -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 -- 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 -- 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 startup. 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 < *nvim-tree.hijack_netrw*