@@ -56,6 +56,10 @@ so we can fix it.
5656
5757## Minimal Quickstart
5858
59+ > [ !NOTE]
60+ > You do not need to call ` require('neo-tree').setup({ ... }) ` for Neo-tree to work. ` setup() ` is only used for
61+ > configuration.
62+
5963#### Minimal Example for Lazy:
6064``` lua
6165{
@@ -66,7 +70,13 @@ so we can fix it.
6670 " nvim-tree/nvim-web-devicons" , -- not strictly required, but recommended
6771 " MunifTanjim/nui.nvim" ,
6872 -- {"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information
69- }
73+ },
74+ lazy = false , -- neo-tree will lazily load itself
75+ --- @module " neo-tree"
76+ --- @type neotree.Config ?
77+ opts = {
78+ -- fill any relevant options here
79+ },
7080}
7181```
7282
@@ -142,12 +152,17 @@ return {
142152 end ,
143153 },
144154 },
155+ lazy = false ,
156+ ---- -Instead of using `config`, you can use `opts` instead, if you'd like:
157+ ---- -@module "neo-tree"
158+ ---- -@type neotree.Config
159+ -- opts = {},
145160 config = function ()
146161 -- If you want icons for diagnostic errors, you'll need to define them somewhere:
147- vim .fn .sign_define (" DiagnosticSignError" , { text = " " , texthl = " DiagnosticSignError" })
148- vim .fn .sign_define (" DiagnosticSignWarn" , { text = " " , texthl = " DiagnosticSignWarn" })
149- vim .fn .sign_define (" DiagnosticSignInfo" , { text = " " , texthl = " DiagnosticSignInfo" })
150- vim .fn .sign_define (" DiagnosticSignHint" , { text = " " , texthl = " DiagnosticSignHint" })
162+ -- vim.fn.sign_define("DiagnosticSignError", { text = " ", texthl = "DiagnosticSignError" })
163+ -- vim.fn.sign_define("DiagnosticSignWarn", { text = " ", texthl = "DiagnosticSignWarn" })
164+ -- vim.fn.sign_define("DiagnosticSignInfo", { text = " ", texthl = "DiagnosticSignInfo" })
165+ -- vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" })
151166
152167 require (" neo-tree" ).setup ({
153168 close_if_last_window = false , -- Close Neo-tree if it is the last window left in the tab
0 commit comments