From 85382dc3927be32b9b52fd2ba6d0c25460cb9079 Mon Sep 17 00:00:00 2001 From: saibotk Date: Fri, 16 Jun 2023 01:48:21 +0200 Subject: [PATCH] update filemanager options --- nvim/lua/filemanager.lua | 40 +++++----------------------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/nvim/lua/filemanager.lua b/nvim/lua/filemanager.lua index b3e4045..d04ad86 100644 --- a/nvim/lua/filemanager.lua +++ b/nvim/lua/filemanager.lua @@ -1,36 +1,4 @@ -- NVIM TREE setup --- icons -vim.g.nvim_tree_icons = { - default = '', - symlink = '', - git = { - unstaged = '✗', - staged = '✓', - unmerged = '', - renamed = '➜', - untracked = '★', - deleted = '', - }, - folder = { - default = '', - open = '', - empty = '', - empty_open = '', - symlink = '', - symlink_open = '', - }, -} - - --- extra options -vim.g.nvim_tree_add_trailing=1 -vim.g.nvim_tree_special_files= { - ["README.md"] = true, - ["readme.md"] = true, - Pipfile = true, - Makefile = true, - ['package.json'] = true, -} -- colors vim.cmd [[hi Directory guifg=#D1D5DB ctermfg=blue]] @@ -53,13 +21,15 @@ local nvimtree = require'nvim-tree' nvimtree.setup { update_cwd = true, renderer = { + add_trailing = false, + special_files = {"README.md", "readme.md", "Pipfile", "Makefile", "package.json"}, indent_markers = { enable = true, }, }, - update_to_buf_dir = { - enable = true, - auto_open = true, + hijack_directories = { + enable = true, + auto_open = true, }, system_open = { cmd = 'open'