Update instructions for neo-tree set up (#200)
For me, setting this variable in the config function didn't work. Putting it outside the return block did the trick.
This commit is contained in:
		
							parent
							
								
									72364ad9ac
								
							
						
					
					
						commit
						933ddee7d9
					
				@ -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:
 | 
					In the file: `lua/custom/plugins/filetree.lua`, add:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```lua
 | 
					```lua
 | 
				
			||||||
 | 
					-- Unless you are still migrating, remove the deprecated commands from v1.x
 | 
				
			||||||
 | 
					vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
return {
 | 
					return {
 | 
				
			||||||
  "nvim-neo-tree/neo-tree.nvim",
 | 
					  "nvim-neo-tree/neo-tree.nvim",
 | 
				
			||||||
  version = "*",
 | 
					  version = "*",
 | 
				
			||||||
@ -73,9 +76,6 @@ return {
 | 
				
			|||||||
    "MunifTanjim/nui.nvim",
 | 
					    "MunifTanjim/nui.nvim",
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  config = function ()
 | 
					  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 {}
 | 
					    require('neo-tree').setup {}
 | 
				
			||||||
  end,
 | 
					  end,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user