Skip to content

Commit 62ca5f4

Browse files
authored
Update instructions for neo-tree set up (nvim-lua#200)
For me, setting this variable in the config function didn't work. Putting it outside the return block did the trick.
1 parent df531d5 commit 62ca5f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ This will automatically install `nvim-autopairs` and enable it on startup. For m
6464
In the file: `lua/custom/plugins/filetree.lua`, add:
6565

6666
```lua
67+
-- Unless you are still migrating, remove the deprecated commands from v1.x
68+
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
69+
6770
return {
6871
"nvim-neo-tree/neo-tree.nvim",
6972
version = "*",
@@ -73,9 +76,6 @@ return {
7376
"MunifTanjim/nui.nvim",
7477
},
7578
config = function ()
76-
-- Unless you are still migrating, remove the deprecated commands from v1.x
77-
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
78-
7979
require('neo-tree').setup {}
8080
end,
8181
}

0 commit comments

Comments
 (0)