Skip to content

Commit e2ffa39

Browse files
authored
Merge pull request #1 from miversen33/main
Added documentation on new `display_name` attribute
2 parents 500862c + 1acdba7 commit e2ffa39

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lua/example/init.lua

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ local renderer = require("neo-tree.ui.renderer")
66
local manager = require("neo-tree.sources.manager")
77
local events = require("neo-tree.events")
88

9-
local M = { name = "example" }
9+
local M = {
10+
-- This is the name our source will be referred to as
11+
-- within Neo-tree
12+
name = "example",
13+
-- This is how our source will be displayed in the Source Selector
14+
display_name = "留Example"
15+
}
1016

1117
---Navigate to the given path.
1218
---@param path string Path to navigate to. If empty, will navigate to the cwd.

0 commit comments

Comments
 (0)