summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/nvim-tree.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/nvim-tree.lua')
-rw-r--r--.config/nvim/lua/plugins/nvim-tree.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/nvim-tree.lua b/.config/nvim/lua/plugins/nvim-tree.lua
new file mode 100644
index 0000000..a2d4532
--- /dev/null
+++ b/.config/nvim/lua/plugins/nvim-tree.lua
@@ -0,0 +1,40 @@
1return {
2 {
3 "nvim-tree/nvim-tree.lua",
4 lazy = false,
5 dependencies = {
6 "nvim-tree/nvim-web-devicons",
7 },
8 opts = {
9 sort_by = "case_sensitive",
10 diagnostics = {
11 enable = false,
12 icons = {
13 hint = "❔",
14 info = "❕",
15 warning = "❗",
16 error = "❌",
17 }
18 },
19 view = {
20 adaptive_size = true,
21 },
22 renderer = {
23 group_empty = true,
24 },
25 filters = {
26 dotfiles = true,
27 },
28 },
29 init = function()
30 vim.g.loaded_netrw = 1
31 vim.g.loaded_netrwPlugin = 1
32
33 local map = require("helpers.keys").map
34
35 map("n", "vt", "<cmd>NvimTreeToggle<cr>")
36 map("n", "vr", "<cmd>NvimTreeRefresh<cr>")
37 map("n", "vs", "<cmd>NvimTreeFindFile<cr>")
38 end,
39 },
40}