From ad10e32e099d2f8bd3de72884e7c716e03fc4b4d Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 12 Oct 2021 23:38:04 +0200 Subject: [PATCH] More nvim-tree config --- init.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index cbc7223..76642ef 100644 --- a/init.lua +++ b/init.lua @@ -77,15 +77,25 @@ require('cmp_plug') require('nvim-tree').setup({ auto_close = true, update_cwd = true, - update_to_buf_dir = { - -- enable the feature + -- update_to_buf_dir = { + -- -- enable the feature + -- enable = true, + -- -- allow to open the tree if it was previously closed + -- auto_open = false, + -- }, + diagnostics = { enable = true, - -- allow to open the tree if it was previously closed - auto_open = false, + icons = { + hint = "", + info = "", + warning = "", + error = "", + } }, }) utils.map('n', 'tt', 'NvimTreeToggle') g.nvim_tree_highlight_opened_files = 1 +g.nvim_tree_respect_buf_cwd = 1 -------------------- COMMENTED ----------------------------- require('Comment').setup({ toggler = {