From 16d865cf406027c5bf13524fed6eace5266c794a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 9 Jun 2024 03:56:17 +0300 Subject: nvim: update nvimtree config api looks nicer, figure it out --- .config/nvim/lua/plugins/nvim-tree.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '.config/nvim/lua') 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 { "nvim-tree/nvim-web-devicons", }, opts = { - sort_by = "case_sensitive", + sort = { + sorter = "case_sensitive" + }, diagnostics = { - enable = false, + enable = true, icons = { hint = "❔", info = "❕", @@ -16,9 +18,6 @@ return { error = "❌", } }, - view = { - adaptive_size = true, - }, renderer = { group_empty = true, }, @@ -34,7 +33,7 @@ return { map("n", "vt", "NvimTreeToggle") map("n", "vr", "NvimTreeRefresh") - map("n", "vs", "NvimTreeFindFile") + map("n", "vs", "NvimTreeFindFile!") end, }, } -- cgit v1.2.3-70-g09d2