-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathneo-tree.lua
More file actions
74 lines (74 loc) · 2.47 KB
/
neo-tree.lua
File metadata and controls
74 lines (74 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
return {
"nvim-neo-tree/neo-tree.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
event = "VeryLazy",
keys = {
{ "<leader>tT", ":Neotree toggle<CR>", desc = "Toggle Neo-tree" },
{ "<leader>tF", ":Neotree filesystem reveal left<CR>", desc = "Reveal File in Neo-tree" },
{ "<leader>tB", ":Neotree buffers reveal float<CR>", desc = "Neo-tree Buffers" },
{ "<leader>tG", ":Neotree git_status reveal float<CR>", desc = "Neo-tree Git Status" },
{ "<leader>tS", ":Neotree document_symbols reveal float<CR>", desc = "Neo-tree Symbols" },
},
config = function()
require("neo-tree").setup({
default_component_configs = {
icon = {
folder_empty = "",
folder_empty_open = "",
},
git_status = {
symbols = {
renamed = "",
unstaged = "",
},
},
},
document_symbols = {
kinds = {
File = { icon = "", hl = "Tag" },
Namespace = { icon = "", hl = "Include" },
Package = { icon = "", hl = "Label" },
Class = { icon = "", hl = "Include" },
Property = { icon = "", hl = "@property" },
Enum = { icon = "", hl = "@number" },
Function = { icon = "", hl = "Function" },
String = { icon = "", hl = "String" },
Number = { icon = "", hl = "Number" },
Array = { icon = "", hl = "Type" },
Object = { icon = "", hl = "Type" },
Key = { icon = "", hl = "" },
Struct = { icon = "", hl = "Type" },
Operator = { icon = "", hl = "Operator" },
TypeParameter = { icon = "", hl = "Type" },
StaticMethod = { icon = " ", hl = "Function" },
},
},
-- Add this section only if you've configured source selector.
source_selector = {
winbar = true,
sources = {
{ source = "filesystem", display_name = " Files" },
{ source = "git_status", display_name = " Git" },
{ source = "buffers", display_name = " Buffers" },
{ source = "document_symbols", display_name = " Symbols" },
},
content_layout = "center",
highlight_tab = "NeoTreeTabInactive", -- string
highlight_tab_active = "NeoTreeTabActive", -- string
highlight_background = "NeoTreeTabInactive", -- string
highlight_separator = "ActiveWindow", -- string
highlight_separator_active = "NeoTreeTabSeparatorActive", -- string
},
sources = {
"filesystem",
"buffers",
"git_status",
"document_symbols",
},
})
end,
}