summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/nvim-tree.lua
diff options
context:
space:
mode:
authorYigit Sever2023-08-18 23:42:39 +0300
committerYigit Sever2023-08-18 23:42:39 +0300
commit387e08c52d9752bc839c71119f140ba8435c3d70 (patch)
tree3bb20c0e58ccf1e65ced4cfdfb6459e226a24672 /.config/nvim/lua/plugins/nvim-tree.lua
parent14c14cfcc9aeb4bada6d2429162ded2917f26a94 (diff)
downloaddotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.gz
dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.bz2
dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.zip
nvim: switch to lazy.nvim
revert this as whole, if you miss the good old days
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}