Skip to content

Commit

Permalink
Update instructions for neo-tree set up (nvim-lua#200)
Browse files Browse the repository at this point in the history
For me, setting this variable in the config function didn't work. Putting it outside the return block did the trick.
  • Loading branch information
lucianbc authored Feb 27, 2023
1 parent d088cac commit 152167d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ This will automatically install `nvim-autopairs` and enable it on startup. For m
In the file: `lua/custom/plugins/filetree.lua`, add:

```lua
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])

return {
"nvim-neo-tree/neo-tree.nvim",
version = "*",
Expand All @@ -73,9 +76,6 @@ return {
"MunifTanjim/nui.nvim",
},
config = function ()
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])

require('neo-tree').setup {}
end,
}
Expand Down

0 comments on commit 152167d

Please sign in to comment.