diff options
author | Yigit Sever | 2024-06-09 03:56:17 +0300 |
---|---|---|
committer | Yigit Sever | 2024-06-09 03:56:17 +0300 |
commit | 16d865cf406027c5bf13524fed6eace5266c794a (patch) | |
tree | 2e5c4fc5786e6d880aa35e1ca336386ce72a3e3b /.config | |
parent | 8e18eb89945ff7fb0253a34c340d389ec0c8492c (diff) | |
download | dotfiles-16d865cf406027c5bf13524fed6eace5266c794a.tar.gz dotfiles-16d865cf406027c5bf13524fed6eace5266c794a.tar.bz2 dotfiles-16d865cf406027c5bf13524fed6eace5266c794a.zip |
nvim: update nvimtree config
api looks nicer, figure it out
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/plugins/nvim-tree.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/.config/nvim/lua/plugins/nvim-tree.lua b/.config/nvim/lua/plugins/nvim-tree.lua index a2d4532..422a402 100644 --- a/.config/nvim/lua/plugins/nvim-tree.lua +++ b/.config/nvim/lua/plugins/nvim-tree.lua | |||
@@ -6,9 +6,11 @@ return { | |||
6 | "nvim-tree/nvim-web-devicons", | 6 | "nvim-tree/nvim-web-devicons", |
7 | }, | 7 | }, |
8 | opts = { | 8 | opts = { |
9 | sort_by = "case_sensitive", | 9 | sort = { |
10 | sorter = "case_sensitive" | ||
11 | }, | ||
10 | diagnostics = { | 12 | diagnostics = { |
11 | enable = false, | 13 | enable = true, |
12 | icons = { | 14 | icons = { |
13 | hint = "❔", | 15 | hint = "❔", |
14 | info = "❕", | 16 | info = "❕", |
@@ -16,9 +18,6 @@ return { | |||
16 | error = "❌", | 18 | error = "❌", |
17 | } | 19 | } |
18 | }, | 20 | }, |
19 | view = { | ||
20 | adaptive_size = true, | ||
21 | }, | ||
22 | renderer = { | 21 | renderer = { |
23 | group_empty = true, | 22 | group_empty = true, |
24 | }, | 23 | }, |
@@ -34,7 +33,7 @@ return { | |||
34 | 33 | ||
35 | map("n", "vt", "<cmd>NvimTreeToggle<cr>") | 34 | map("n", "vt", "<cmd>NvimTreeToggle<cr>") |
36 | map("n", "vr", "<cmd>NvimTreeRefresh<cr>") | 35 | map("n", "vr", "<cmd>NvimTreeRefresh<cr>") |
37 | map("n", "vs", "<cmd>NvimTreeFindFile<cr>") | 36 | map("n", "vs", "<cmd>NvimTreeFindFile!<cr>") |
38 | end, | 37 | end, |
39 | }, | 38 | }, |
40 | } | 39 | } |